bias and variance of trained neural network
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohamad
le 1 Déc 2013
Commenté : Muhammad Adil Raja
le 8 Déc 2018
Hello How can we save the bias and variance of a trained network? thank you in advance
0 commentaires
Réponse acceptée
Greg Heath
le 2 Déc 2013
[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 commentaires
SAM
le 13 Oct 2017
hi Greg, how can I calculate bias and variance if I have mean square error ? or i must have err=Targets-predictions
Muhammad Adil Raja
le 8 Déc 2018
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
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Modeling and Prediction with NARX and Time-Delay Networks dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!