Description Usage Arguments Value Examples
View source: R/ModelGeneration.R
Predicts values for a ModelComparison object.
1 2 |
object |
The ModelComparison object whose models will be predicted on. |
newdata |
A dataframe of new data that the models will use to predict. |
... |
Other arguments, if needed |
A list of dataframes, where each dataframe is the predictions from the respective model for the two output classes.
1 2 3 4 5 6 | # load the csv file for the dataset "titanic"
# titanic <- PrepareNumericTitanic()
# create the ModelComparison object by passing in the training set and training labels
# comp <- GetModelComparisons(titanic[, -1], titanic[, 1])
# predict by passing in the new df for the object to predict on
# pred.list <- predict(comp, titanic[, -1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.