Clear Filters
Clear Filters

Prediction with Fuzzy Neural Network and Anfis

2 views (last 30 days)
youngz
youngz on 15 Jul 2016
Edited: youngz on 16 Jul 2016
Hi everyone, I'am pretty new with Matlab and I'm trying to predict with a fuzzy neural net. Following some tutorials (finding on the web) I write this code:
M % complete matrix with a lot of row (>150000) and 39 column (the last one is the output of the nn, it could be 2 or 3)
TRAIN % 70% of M
CHECK % 15% of M
TEST % 15% of M
[Train_r Train_c] = size(TRAIN);
inp = TRAIN(:,1:(Train_c-1));
out = TRAIN(:,Train_c);
in_fis2 = genfis2(inp,out,0.5);
in_fis3 = genfis3(inp,out,'sugeno',3);
epoch_n = 20;
dispOpt = zeros(1,4);
out_fis2 = anfis(TRAIN,in_fis2,20,dispOpt);
out_fis3 = anfis(TRAIN,in_fis3,20,dispOpt);
Now I would like to predict these trainings on TEST and CHECK (like a classic ANN). After that, i would like to plot Confusion Matrix and Roc Curve. Do you have any suggestions?
Thanks
Edit: I see this example, however I would like to translate this tutorial in code!

Answers (0)

Categories

Find more on Fuzzy Logic Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!