Info

This question is closed. Reopen it to edit or answer.

how to combine the ouitput

1 view (last 30 days)
nkumar
nkumar on 19 Dec 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
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)) ;

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!