Relation between input data points and hyper parameters that needs to be tuned

조회 수: 1 (최근 30일)
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

채택된 답변

Greg Heath
Greg Heath 2018년 8월 9일
편집: Greg Heath 2018년 8월 9일
[ 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
  댓글 수: 1
Venkat
Venkat 2018년 8월 9일
Hi Greg,
Thanks for your time and input. I understood what you have said. My problem is I am using CNN. My inputs are images of size 16x512 and I have 30,000 image samples per class, totaling 60,000 representing my 2 classes.
In order to decide on the number of layers in CNN along with the number of filters in each convolutional layer, I am doing an iterative process, but that is going to take a long time. So I am trying to see if I can derive some generic numbers I can start with rather than iterating from 1 to N as far as the number of filters is concerned.
Can I apply the same rule? If yes, can you please explain a little bit more
Thanks

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

추가 답변 (1개)

Greg Heath
Greg Heath 2018년 8월 11일
Each case is different. However, things tend to be relatively straightforward if you have at least as many training equations as you have unknowns.

카테고리

Help CenterFile Exchange에서 Get Started with Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by