Learn R Programming

specmine (version 3.0.1)

predict_samples: Predict samples

Description

Predict new samples.

Usage

predict_samples(train.result, new.samples)

Arguments

train.result

result from training a classifier.

new.samples

dataframe with new samples.

Value

Returns a data frame with the samples and the predicted class.

Examples

Run this code
# NOT RUN {
  ## Example of predicting samples
  training.result = train_models_performance(cachexia, "pls", 
  	"Muscle.loss", "cv")
  result = predict_samples(training.result$final.models$pls, cachexia$data)
  
# }

Run the code above in your browser using DataLab