Description Usage Arguments Details Value Examples
View source: R/sampleComplexityPAC.R
This calculates the sample complexity for a range of possible models using PAC Learning concept with VC dimension.
1 | sampleComplexityPAC(nVar, maxRem, error = 0.1, signif = 0.05)
|
nVar |
The number of variable of initial model. |
maxRem |
The number of variable to remove from the data set that will be used to compose the following models. |
error |
The error of PAC Learning. The range of this parameter is between 0 and 1. |
signif |
The significance of PAC Learning. This parameter ranges between 0 and 1. |
This function calculates the sample complexity for models (classifiers or regressions) that have "nVar", "nVar-1", "nVar-2", ..., "n_var-maxRem" input variables. This sample complexity is calculated using PAC Learning concept, considering some error and significance.
The returned value is a vector with one sample complexity (as element) for each possible model.
1 2 3 | sampleComplexityPAC(10, 5)
sampleComplexityPAC(30, 25, .05, .01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.