thinning {stressor} | R Documentation |
Thinning Algorithm for Models with Predict Function
Description
Fits various train size and test sizes.
Usage
thinning(
model,
data,
max = 0.95,
min = 0.05,
iter = 0.05,
classification = FALSE
)
Arguments
model |
A model that is currently of class type "reg_sine", "reg_asym", "lm", or "mlm_stressor". |
data |
A data frame with all the data. |
max |
A numeric value in (0, 1] and greater than 'min', defaulted to .95. |
min |
A numeric value in (0, 1) and less than 'max', defaulted to .05. |
iter |
A numeric value to indicate the step size, defaulted to .05. |
classification |
A Boolean value defaulted 'FALSE', used for 'mlm_classification'. |
Value
A list of objects, where the first element is the RMSE values at each iteration and the second element is the predictions.
Examples
lm_data <- data_gen_lm(1000)
lm_model <- lm(Y ~ ., lm_data)
thin_results <- thinning(lm_model, lm_data)
[Package stressor version 0.2.0 Index]