View source: R/OptHoldoutSize_estimation.R
powerlaw | R Documentation |
Power law function for modelling learning curve (taken to mean change in expected loss per sample with training set size)
Recommended in review of learning curve forms
If theta=c(a,b,c)
then models as a n^(-b) + c
. Note b
is negated.
Note that powerlaw(n,c(a,b,c))
has limit c
as n
tends to infinity, if a,b > 0
powerlaw(n, theta)
n |
Set of training set sizes to evaluate |
theta |
Parameter of values |
Vector of values of same length as n
ncheck=seq(1000,10000)
plot(ncheck, powerlaw(ncheck, c(5e3,1.2,0.3)),type="l",xlab="n",ylab="powerlaw(n)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.