Description Usage Arguments Value Examples
computes a suggested best number of test chunks, i.e., calls to the function passed to the argument drawFunction.
1 2 | simTestSize(learningAlgorithm, drawFunction, g, conf.level = 0.95,
testChunkSize, Nwithin = 110, Nbetween = 100, ...)
|
learningAlgorithm |
a function that takes learning data as argument and outputs a prediction rule in the form of another function that maps test data to numeric vectors. These can be errors or AUCs, one for each testing data set. |
drawFunction |
a function that returns a dataframe with the response variable in a column names y |
g |
the learning sample sizelearningAlgorithm, drawFunction, Nwithin=12, Nbetween=17) |
conf.level |
the confidence level; defaults to .95 |
testChunkSize |
the sample size of a single test chunk |
Nwithin |
number of test chunks to be drawn for each training iteration. In the paper, this number was called n_test. |
Nbetween |
number of training data sets to be drawn. In the paper, this number was calles N. |
... |
additional parameters to be passed to the drawFunction |
a list with entries lower, point, upper for the confidence interval for the ratio of the two variances and another for the optimal number of test chunks, the error matrix, the times C and B, and the variance within learning sets (vwl), and the variance between learning sets (vbl).
1 2 3 4 5 6 | simTestSize(
learningAlgorithm=svmLearning,
drawFunction=drawLogit,
g=20,
testChunkSize=1
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.