How to modify trainlm?

2 views (last 30 days)
goay chan hong
goay chan hong on 5 Apr 2017
Commented: John D'Errico on 5 Apr 2017
Good day. I want to modify trainlm function by changing the performance index but I do not know how to do it. Can anyone help me? I've read this article: http://ieeexplore.ieee.org/document/7879611/
where they claimed that changing the performance index from Eq. (5) to Eq. (6) can improve the performance.
  1 Comment
John D'Errico
John D'Errico on 5 Apr 2017
Modifying supplied code from MathWorks (or any source, including me) is generally a dangerous, bad idea. If you can't write it yourself, and don't even know how to modify it, you will surely not be able to make the changes in a safe way. As well, the only possible way to deal with changes made to code provided to users is the rule "You break it, you own it". That is, if you make changes to supplied code, then any future problems with that code are completely your own to resolve, even if they appear not to be directly related to the change you made.
If you think this modification is a good idea, then I'd suggest you put it in as a feature request, directly to MathWorks. They will evaluate the idea and decide if it really does have merit. If so, then they may well add it in a future release, and do so in a stable, safe, and well tested fashion.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!