- Check the convergence criteria: ANFIS stops training when the error between the predicted output and the actual output falls below a certain threshold or when the maximum number of epochs is reached. Check the convergence criteria to ensure that the training is not stopping prematurely due to the error threshold being met before 6 epochs.
- Check the training dataset: Ensure that the training dataset is large enough to require more than 2 epochs of training. If the training dataset is small, the algorithm may converge quickly, resulting in fewer epochs of training.
- Check the ANFIS settings: Double-check that you have set the correct "epochs" parameter in the ANFIS settings. Additionally, ensure that other ANFIS parameters, such as the number of membership functions, are set appropriately.
- Check for errors: Check the output and error messages in the MATLAB console to see if there are any error messages that may explain why the training is stopping earlier than expected.
Number of epochs not reached in anfisedit
3 views (last 30 days)
Show older comments
When using anfisedit tool in Matlab I put the epochs number in 6, for example, however every time I train the model it only trains it 2 times, not 6 as previously stated. What could be the problem?
0 Comments
Answers (1)
Harsh Sanghai
on 23 Mar 2023
Hi,
If you are observing that the model is only trained for 2 epochs instead of 6, there might be several reasons for this behavior. Here are a few things you can check:
0 Comments
See Also
Categories
Find more on Fuzzy Logic Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!