Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to combine the ouitput
1 次查看(过去 30 天)
显示 更早的评论
I am workig om ensemble callification using anfis,I have trained and tested the code,but dont have idea on how to combine these 3 to get result,kindly tell how to proceed
clc
clear all
load fisheriris
colon_training1 = meas(:,[1,3,4,end]);
colon_training2 = meas(:,[2,1,3,end]);
colon_training3 = meas(:,[4,2,1,end]);
colon_test1_f = (meas(:,[1,3,4]))';
colon_test2_f = (meas(:,[2,1,3]))';
colon_test3_f = (meas(:,[4,2,1]))';
% Set target matrix for test datasets
[m n]=size(meas); test_t=[];
numMFs = 2;
mfType='trimf'
epoch_n = 10; % Number of training epochs
% 3 initial individual ANFIS models
fis1 = genfis1(colon_training1,numMFs,mfType);
fis2 = genfis1(colon_training2,numMFs,mfType);
fis3 = genfis1(colon_training3,numMFs,mfType);
% Training the 3 individual models respectively
result_anfis1 = anfis(colon_training1,fis1,epoch_n);
result_anfis2 = anfis(colon_training2,fis2,epoch_n);
result_anfis3 = anfis(colon_training3,fis3,epoch_n);
anfis_out1=(evalfis([colon_test1_f ],result_anfis1)) ;
anfis_out2=(evalfis([colon_test2_f ],result_anfis2)) ;
anfis_out3=(evalfis([colon_test3_f ],result_anfis3)) ;
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!