When I set net.trainParam.epochs=5000, the max epoch is still 1000 in GUI
35 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
DAR VON
am 4 Dez. 2017
Kommentiert: Greg Heath
am 8 Dez. 2017
I can't change the max epoch using net.trainParam.epochs.
2 Kommentare
Elizabeth Reese
am 6 Dez. 2017
Can you post how you created the network? It would be helpful to see the code that reproduces this issue. Sometimes the order of changing different parameters and options can reset values back to their defaults and 1000 is the default epoch value for the training functions.
Akzeptierte Antwort
Elizabeth Reese
am 7 Dez. 2017
Thank you for posting your code.
Based on the Neural Network Toolbox documentation here, updating the net.trainFcn will reset the net.trainParam to the default values for the new function. So changing the net.trainFcn to trainscg changes the net.trainParam to the defaults listed here. These defaults include having the epochs set to 1000.
To fix this, just move the assignment to the net.trainFcn to before any updates to the net.trainParam.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 时序、序列和文本深度学习 finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!