Learn R Programming

SAM (version 1.0.2)

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

Description

Predict the class labels for testing data.

Usage

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

Arguments

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

Value

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

Details

The testing dataset is rescale to the l1svme range, and expanded by the l1svme 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

l1svm