twmeggs / anfis

Python implementation of an Adaptive neuro fuzzy inference system
MIT License
202 stars 108 forks source link

Different number of MF for each input variable #22

Open romstormy27 opened 1 year ago

romstormy27 commented 1 year ago

i define the MF for four of my input variables as below: mf = [[['gaussmf',{'mean':13.45,'sigma':3.2}], ['gaussmf',{'mean':25.7,'sigma':3.2}]], [['gaussmf',{'mean':41.74,'sigma':6.3}], ['gaussmf',{'mean':54.53,'sigma':6.3}], ['gaussmf',{'mean':66.51,'sigma':6.3}]], [['sigmf',{'b':1014.26,'c':-0.6}], ['sigmf',{'b':1012.1,'c':0.6}]], [['sigmf',{'b':60,'c':-0.6}], ['gaussmf',{'mean':73.31,'sigma':7.3}], ['sigmf',{'b':88,'c':0.6}]]]

but resulted in error when i run anf.trainHybridJangOffLine(epochs=3) like below:

image

i don't know how to solve this. please help me @twmeggs