Please help me to solve a problem in modeling ANFIS
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am a new user of ANFIS and I have been facing some problems in prediction electric load from ANFIS. Some of outputs (electric loads predicted) are negatives or too much different from the trained values. In form to give you an idea in what I am trying do to, bellow follow the MatLab code for ANFIS
1. fismat = genfis1(gangan,3,'trimf','constant')
% the gagan is a matrix 4*24. The four columns represent the following: The first is day hours. The second is the temperature on each hour. The third is the humidity on each hour. And the last is the electric power on each hour. 2. trn_fismat=anfis(gangan,fismat)
3. ruleedit(trn_fismat)
4. input=gangan(:,1:4)
5. anfis_output = evalfis(input, trn_fismat);
Could give me tips help me to train my ANFIS in form they predict the electric load close to trained values.
PS. Attached you find the matlab data and code if you need
Thank you in advance and I am looking forward your kind reply.
Best regards;
Heleno Sanches
0 commentaires
Réponse acceptée
Win co
le 28 Mar 2012
Could you leave here your data file (train_data and check_data) ? Winn
0 commentaires
Plus de réponses (2)
Heleno
le 28 Mar 2012
1 commentaire
Walter Roberson
le 20 Avr 2012
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
Win co
le 20 Avr 2012
Hi,
I advice you to normalize your data before training your ANFIS. the purpose is to limit all type of your data smaller than 1. Ex: day=day/max(day), etc
I'm not familiar with using the command lines, I use the ANFIS GUI instead.
I created a script to create traing and checking data from your data given above. I attach the figure of checking result. It may be better than your case.
Configuration of my ANFIS :
number of membership function : 2 2 2
output : constant
Membership function : trapmf
epoch : 20
Hope it can help
Regards
0 commentaires
Voir également
Catégories
En savoir plus sur Fuzzy Logic Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!