bias and variance of trained neural network

Hello How can we save the bias and variance of a trained network? thank you in advance

 채택된 답변

Greg Heath
Greg Heath 2013년 12월 2일

2 개 추천

[x,t] = simplefit_dataset;
net = fitnet(4);
rng(0)
[ net tr y e ] = train(net,x,t);
biaserr = mean(e(:))
varerr = var(e(:))
HTH
Thank you for formally accepting my answer
Greg

댓글 수: 2

SAM
SAM 2017년 10월 13일
hi Greg, how can I calculate bias and variance if I have mean square error ? or i must have err=Targets-predictions
Hi Greg, I really like this definition of variance as it is calculated over the error and not on the model output alone. However, is there a reference to back it up? Normally the variance is defined as the variance of the model output, which rather sounds non-sensible to me.
Moreover, how to compute these values if I am using fitnet for MIMO (multiple input or multiple output) problems or while using ensembles?
Best,
MA

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

추가 답변 (1개)

Mohamad
Mohamad 2013년 12월 2일

0 개 추천

Greg Thank you very much.

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2013년 12월 1일

댓글:

2018년 12월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by