Nothing
Code
caret:::anovaScores(factor(c("a", "b")), factor(c("a", "b")))
Condition
Error in `caret:::anovaScores()`:
! The predictors should be numeric
Code
predict(nm, type = "prob")
Condition
Error in `predict.nullModel()`:
! ony raw predicitons are applicable to regression models
Code
print(caret:::nullModel(y = factor(c("a", "a", "b"))))
Output
Null Classification Model
Call:
nullModel.default(y = factor(c("a", "a", "b")))
Predicted Value: a
Code
print(caret:::nullModel(y = c(1, 2, 3)))
Output
Null Regression Model
Call:
nullModel.default(y = c(1, 2, 3))
Predicted Value: 2
Code
print(sf)
Output
Selection By Filter
Outer resampling method: Cross-Validated (3 fold)
Resampling performance:
Accuracy Kappa AccuracySD KappaSD
0.7067 0.3847 0.04619 0.1019
Using the training set, 7 variables were selected:
TwoFactor1, TwoFactor2, Linear02, Linear03, Linear04...
During resampling, the top 5 selected variables (out of a possible 7):
TwoFactor2 (100%), Linear02 (66.7%), Linear03 (66.7%), Linear04 (66.7%), Linear06 (66.7%)
On average, 4.3 variables were selected (min = 3, max = 6)
Code
sbf(x, cls$Class, sbfControl = sbfControl(functions = ldaSBF, method = "cv",
index = folds, seeds = 1:2))
Condition
Error in `sbf.default()`:
! Bad seeds: the seed object should be an integer vector of length 4
Code
densityplot(loo)
Condition
Error in `densityplot.sbf()`:
! Resampling plots cannot be done with leave-out-out CV or out-of-bag resampling
Code
histogram(loo)
Condition
Error in `histogram.sbf()`:
! Resampling plots cannot be done with leave-out-out CV or out-of-bag resampling
Code
sbf(rec, data = cls, sbfControl = sbfControl(functions = ldaSBF, method = "cv",
index = folds, seeds = 1:2))
Condition
Error in `sbf.recipe()`:
! Bad seeds: the seed object should be an integer vector of length 4
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.