Use regularization with trainlm - negative performance

조회 수: 4 (최근 30일)
Elisabeth Degrand
Elisabeth Degrand 2018년 1월 31일
편집: Greg Heath 2018년 11월 1일
I train my network (2-layers) from the Neural Network toolbox. I train it with the train function trainlm and performance function mse. When I add some regularization through
net.performParam.regularization = 0.6
I get negative performance (for example -0.02). Is it possible to use regularization with trainlm. And how is it possible to get negative performance?

답변 (1개)

Greg Heath
Greg Heath 2018년 10월 31일
편집: Greg Heath 2018년 10월 31일
0. SEE BELOW AND POST ANY DIFFICULTIES
1. Read the documentation and try the examples
help trainbr
and
doc trainbr
2. Search previous posts using
trainbr
and
greg trainbr
3. More example data is available using
help nndatasets
doc nndatasets
Post any problems and alert me.
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 2
Daniel Perez Rapela
Daniel Perez Rapela 2018년 10월 31일
Hello Greg, I have looked the everywhere (MatLab and not MatLab) and still cannot find an answer for this question. How is it possible that when I train my neuron with trainln with regularization the performance turns out negative for some cases? In these cases, best_perf and best_vperf are negative but even more strange is that if I take this already trained neuron and run a perform function with either the training or validation samples, the results are positive and obviously differ from the best_perf and best_vperf. Any thoughts? Thanks, Daniel
Greg Heath
Greg Heath 2018년 11월 1일
편집: Greg Heath 2018년 11월 1일
What do you get with TRAINBR??
Greg

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by