anfis

Training routine for Sugeno-type FIS (MEX only)

Syntax

[fismat,error1,stepsize] = anfis(trnData)
[fismat,error1,stepsize] = anfis(trnData,fismat) 
[fismat1,error1,stepsize] = ...
 anfis(trnData,fismat,trnOpt,dispOpt) 
[fismat1,error1,stepsize,fismat2,error2] = ...
 anfis(trnData,trnOpt,dispOpt,chkData) 
[fismat1,error1,stepsize,fismat2,error2] = ... 
 anfis(trnData,trnOpt,dispOpt,chkData,optMethod) 

Description

This is the major training routine for Sugeno-type fuzzy inference systems. anfis uses a hybrid learning algorithm to identify parameters of Sugeno-type fuzzy inference systems. It applies a combination of the least-squares method and the backpropagation gradient descent method for training FIS membership function parameters to emulate a given training data set. anfis can also be invoked using an optional argument for model validation. The type of model validation that takes place with this option is a checking for model overfitting, and the argument is a data set called the checking data set.

The arguments in the above description for anfis are as follows:

The training process stops whenever the designated epoch number is reached or the training error goal is achieved.

The range variables in the above description for anfis are as follows:

anfis has certain restrictions, see Constraints of anfis for more information.

Examples

x = (0:0.1:10)';
y = sin(2*x)./exp(x/5);
trnData = [x y];
numMFs = 5;
mfType = 'gbellmf';
epoch_n = 20;
in_fismat = genfis1(trnData,numMFs,mfType);
out_fismat = anfis(trnData,in_fismat,20);
plot(x,y,x,evalfis(x,out_fismat));
legend('Training Data','ANFIS Output');

See Also

genfis1, anfisedit

References

Jang, J.-S. R., "Fuzzy Modeling Using Generalized Neural Networks and Kalman Filter Algorithm," Proc. of the Ninth National Conf. on Artificial Intelligence (AAAI-91), pp. 762-767, July 1991.

Jang, J.-S. R., "ANFIS: Adaptive-Network-based Fuzzy Inference Systems," IEEE Transactions on Systems, Man, and Cybernetics, Vol. 23, No. 3, pp. 665-685, May 1993.


© 1994-2005 The MathWorks, Inc.