In [1]:
import sys
sys.path.append('../src')
import Pyfuzzy as fuzz
%matplotlib inline
In [2]:
f1=fuzz.read_model('stub.fis')
In [3]:
f1.show_model()
Out[3]:
In [4]:
(X,Y)=f1.read_training_data('saddle.dat') # reads 200 data sets, can be changed using "example/saddle.py"
In [5]:
f1.get_rmse() # the rsme before training
Out[5]:
In [6]:
fuzz.start_training(f1) # the training takes up to one minute, be patient
In [7]:
f1.get_rmse() # the rsme after training
Out[7]:
In [8]:
f1.show_model()
Out[8]: