Description Usage Arguments Value Examples
View source: R/machinelearning.R
Predict new samples.
1 | predict_samples(train.result, new.samples)
|
train.result |
result from training a classifier. |
new.samples |
dataframe with new samples. |
Returns a data frame with the samples and the predicted class.
1 2 3 4 5 6 7 | ## Example of predicting samples
library(specmine.datasets)
data(cachexia)
training.result = train_models_performance(cachexia, "pls",
"Muscle.loss", "cv")
result = predict_samples(training.result$final.models$pls, cachexia$data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.