Relation between input data points and hyper parameters that needs to be tuned
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Venkat
am 9 Aug. 2018
Kommentiert: Venkat
am 19 Aug. 2018
Hi All,
Can anyone please let me know the relationship between the number of input data points and the hyperparameters/number of layers that needs to be present in any machine learning model?
Thanks for your time and help
1 Kommentar
Akzeptierte Antwort
Greg Heath
am 9 Aug. 2018
Bearbeitet: Greg Heath
am 9 Aug. 2018
[ I N] = size(input)
[ O N ] = size(target)
% (MATLAB DEFAULT)
Ntst = round(0.15*N)
Nval = Ntst
Ntrn = N-(Ntst+Nval)% ~ 0.7*N
% Design parameters
Ndes = Ntrn*O % No. of design equations ~ 0.7*N*O
H % No. of hidden nodes for I-H-O net
Nw = (I+1)*H+(H+1)*O % No. of unknown weights
Require Ndes >= Nw ==> H <= Hub = (Ntrn*O-O)/(I+O+1)
Desire Ndes >> Nw ==> H << Hub
My typical goal: Minimize H subject to the requirement
MSE < = 0.01*var(target',1) % Rsquare >= 0.99
My approach:
1. Apply the requirement to the training data
2. Loop over H to find the minimum H to satisfy the
requirement.
I have hundreds of examples in the NEWSGROUP comp.soft-sys.matlab as well as ANSWERS.
Hope this helps
Thank you for formally accepting my answer
Greg
Weitere Antworten (1)
Greg Heath
am 11 Aug. 2018
Each case is different. However, things tend to be relatively straightforward if you have at least as many training equations as you have unknowns.
Siehe auch
Kategorien
Mehr zu Get Started with Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!