Unexpected Bayesian Regularization performance
조회 수: 4 (최근 30일)
이전 댓글 표시
I'm training a network to learn the sin function from a noisy input of 400 samples.
If I use a 1-30-1 feedforwardnet with 'trainlm' the network generalises well. If I use a 1-200-1 feedforwardnet the network overfits the training data, as expected. My understanding was that 'trainbr' on a network with too many neurons will not overfit. However if I run trainbr on a 1-200-1 network until convergence (Mu reaches maximum), the given network seems to overfit the data despite a strong reduction in "Effective # Param".
To me this is a strange behaviour. Have I misunderstood bayesian regularization? Can someone provide an explanation?
I can post my code if necessary, however first I want to know if the following is correct:
'trainbr' will not overfit with large networks if run to convergence
Thanks
댓글 수: 2
Greg Heath
2020년 8월 22일
편집: Greg Heath
2020년 8월 22일
How many periods are covered by the 400 samples?
What minimum number of samples per period are necessary?
Greg
답변 (1개)
Shubham Rawat
2020년 8월 28일
Hi Jonathan,
Given your dataset and number of neurons it might be possible that your model is overfitting.
I have reproduced your code with 20 neurons and "trainbr" training funtion and it is giving me these results attached here. With Effective # Param = 18.6.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/352820/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/352823/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Modeling and Prediction with NARX and Time-Delay Networks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!