Prediction with Fuzzy Neural Network and Anfis

3 次查看(过去 30 天)
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!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Fuzzy Logic Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by