I get the following code error as soon as i run any of the example code provided by the author on the website. I am using the Concrete_Data.csv file as mentioned in the instructions on the pyFUME webpage. I have also updated the typing-extensions to the latest version. However the following error persists. There seems to be some issue with the data format of variable 'x'. Can you please help me in this! Thank you
- Detected 0 categorical variables.
- Trying to simplify variable 0
- Variable 0, cluster 1 is too similar to universal set (threshold: 0.80): marked for removal
- Trying to simplify variable 1
- Variable 1, cluster 1 is too similar to universal set (threshold: 0.80): marked for removal
- Trying to simplify variable 2
- Variable 2, cluster 2 is too similar to universal set (threshold: 0.80): marked for removal
- Trying to simplify variable 3
- Variable 3, cluster 1 is too similar to universal set (threshold: 0.80): marked for removal
- Variable 3, cluster 2 is too similar to universal set (threshold: 0.80): marked for removal
- Trying to simplify variable 4
- Variable 4, cluster 1 is too similar to universal set (threshold: 0.80): marked for removal
- Trying to simplify variable 5
- Variable 5, cluster 1 is too similar to universal set (threshold: 0.80): marked for removal
- Variable 5, cluster 2 is too similar to universal set (threshold: 0.80): marked for removal
- Trying to simplify variable 6
- Variable 6, cluster 1 is too similar to universal set (threshold: 0.80): marked for removal
- Variable 6, cluster 2 is too similar to universal set (threshold: 0.80): marked for removal
- Trying to simplify variable 7
- Variable 7, cluster 1 is too similar to universal set (threshold: 0.80): marked for removal
- 0 antecedent clauses will be simplified using a threshold 1.00
- GRABS remapping info: {}
- Setnes simplification dictionary variable ==> list of clusters/fuzzy sets to be removed: defaultdict(<class 'list'>, {0: [0], 1: [0], 2: [1], 3: [0, 1], 4: [0], 5: [0, 1], 6: [0, 1], 7: [0]})
Traceback (most recent call last):
File "/home/a4b/Desktop/Yawar/guguma/fuzzy_net/fuzz_rule.py", line 9, in
FIS = pyFUME(dataframe=df, nr_clus=2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/a4b/anaconda3/envs/nett/lib/python3.11/site-packages/pyfume/pyfume.py", line 61, in init
self.FIS = BuildTSFIS(dataframe=dataframe, nr_clus=self.nr_clus, variable_names=variable_names, process_categorical=process_categorical, merge_threshold=merge_threshold, setnes_threshold=setnes_threshold, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/a4b/anaconda3/envs/nett/lib/python3.11/site-packages/pyfume/BuildTakagiSugeno.py", line 191, in init
self.consequent_parameters = ce.suglms()
^^^^^^^^^^^
File "/home/a4b/anaconda3/envs/nett/lib/python3.11/site-packages/pyfume/EstimateConsequentParameters.py", line 143, in suglms
xw = x * np.sqrt(w[:, np.newaxis])
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for *: '_UnpackAlias' and 'float'
I get the following code error as soon as i run any of the example code provided by the author on the website. I am using the Concrete_Data.csv file as mentioned in the instructions on the pyFUME webpage. I have also updated the typing-extensions to the latest version. However the following error persists. There seems to be some issue with the data format of variable 'x'. Can you please help me in this! Thank you
Traceback (most recent call last):
File "/home/a4b/Desktop/Yawar/guguma/fuzzy_net/fuzz_rule.py", line 9, in
FIS = pyFUME(dataframe=df, nr_clus=2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/a4b/anaconda3/envs/nett/lib/python3.11/site-packages/pyfume/pyfume.py", line 61, in init
self.FIS = BuildTSFIS(dataframe=dataframe, nr_clus=self.nr_clus, variable_names=variable_names, process_categorical=process_categorical, merge_threshold=merge_threshold, setnes_threshold=setnes_threshold, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/a4b/anaconda3/envs/nett/lib/python3.11/site-packages/pyfume/BuildTakagiSugeno.py", line 191, in init
self.consequent_parameters = ce.suglms()
^^^^^^^^^^^
File "/home/a4b/anaconda3/envs/nett/lib/python3.11/site-packages/pyfume/EstimateConsequentParameters.py", line 143, in suglms
xw = x * np.sqrt(w[:, np.newaxis])
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for *: '_UnpackAlias' and 'float'