anfis icon indicating copy to clipboard operation
anfis copied to clipboard

IndexError: list index out of range

Open hetezadi opened this issue 2 years ago • 1 comments

Hello

I have a dataset with 3 features and one output but I face this problem and I do not know how to solve it?

Any idea?

Error:

Number of variables does not match number of rule sets

IndexError Traceback (most recent call last) in () 51 ################################################################# 52 ---> 53 anf.trainHybridJangOffLine(epochs=epochs_anfis) 54 55 ####################################################################

3 frames in (.0) 22 print("Number of variables does not match number of rule sets") 23 ---> 24 return [[self.funcDictself.MFList[i][k][0] for k in range(len(self.MFList[i]))] for i in range(len(rowInput))]

IndexError: list index out of range

hetezadi avatar Mar 08 '22 04:03 hetezadi

because you need to define membership function for your 3rd feature

YudhaDev avatar Aug 02 '23 11:08 YudhaDev