Hello,
I must say that i love your work! This library is simple to use, but also can fulfill most of the needs!
The only question i have is how to accomodate more than 2 statements in a rules? np.fmin and np.fmax can take only two arrays as arguments i would need three.
I am creating fuzzy apartment search engine for my university. So basically i need rules like - "IF Apartment price is in given range AND apartment size is bit low AND apartment room number is too low THEN apartment score is MEDIUM" -this one is only an example.
Any ideas for such thing? :)
Thanks!
ctrl.Rule(price['medium'] & size['low'] & number['low'], score['medium'])
and it should work just great!
skfuzzy.control
. However, many of the necessary pieces for working with Type-2 systems are exposed in the base namespace as general purpose functions in the toolkit. I suspect much of the low-level legwork is present, but this isn't part of my active work so I am not entirely certain what might need to be tweaked or generalized.
@misc{https://doi.org/10.5281/zenodo.3541384,
doi = {10.5281/ZENODO.3541384},
url = {https://zenodo.org/record/3541384},
author = {Warner, Josh and Sexauer, Jason and {Scikit-Fuzzy} and {Twmeggs} and {Alexsavio} and {Aishwarya Unnikrishnan} and Castelão, Guilherme and Pontes, Felipe Arruda and Uelwer, Tobias and {Pd2f} and {Laurazh} and Batista, Fernando and {Alexbuy} and Broeck, Wouter Van Den and Song, William and Badger, The Gitter and Pérez, Roberto Abdelkader Martínez and Power, James F. and {Himanshu Mishra} and Trullols, Guillem Orellana and Hörteborn, Axel and {99991}},
title = {scikit-fuzzy/scikit-fuzzy: Scikit-Fuzzy 0.4.2},
publisher = {Zenodo},
year = {2019},
copyright = {Open Access}
}
@JDWarner
Dear,
I am sorry to @you here. but i am have a question. I am first to use the ctrl system.
tip['medium'] = fuzz.trimf(tip.universe, [0, 13, 25]) -> the fuzz.trimf should return an array of membership;
but when i use the tip['medium'], it is a consequent. so how to get the membership value just from tip['medium']. if i print(tip['medium']), it did not return anything.
Hey everyone!
Firstly, let me congratulate and thank the authors of this package as it looks like to be a great tool.
Secondly, I'm here because I've encountered some problems while running it and would like to ask for your help with some questions regarding the cmeans and cmeans_predict functions:
when inserting the data in the cmeans and cmeans_predict functions, does the last column have to be the target column?
My objective is to classify in 0 and 1s, data with 27 columns (26 features + 1 targets) so I need 2 clusters with, if I'm not mistaken, centers with 27 coordinates. When I create the model with the training data, the function returns the variable cntr with a shape of (2,6224). Can you explain why does the function return these values?
After obtaining this cntr variable and applying it to the cmeans_predict function, with test_data with the same number of columns, I get the following error:
"XA and XB must have the same number of columns (i.e. feature dimension.)"
Could you explain why does this happen?
Thank you, again, for your work.
Best Regards,