Learn R Programming

SAM (version 1.0.2)

predict.spam: Prediction function for S3 class "spam"

Description

Predict the class labels for testing data.

Usage

## S3 method for class 'spam':
predict(object, newdata, ...)

Arguments

object
An object with S3 class "spam".
newdata
The testing dataset represented in a n by d matrix, where n is spample size and d is dimension.
...
System reserved. (No specific usage)

Value

  • labPredicted labels also represented in a n by d matrix, where n is spample size and d is dimension.
  • decDecision values also represented in a n by d matrix, where n is spample size and d is dimension.

Details

The testing dataset is rescale to the spame range, and expanded by the spame spline basis funcions as the training data.

References

T. Zhao and H.Liu. "Sparse Additive Machine", International Conference on Artificial Intelligence and Statistics, 2012. P. Bradley and O. Mangasarian. ""Feature selection via concaveminimization and support vector machines"", International Conference on Machine Learing, 1998.

See Also

spam