Learn R Programming

SAM (version 1.0.4)

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

Description

Predict the labels for testing data.

Usage

## S3 method for class 'samLL':
predict(object, newdata, thol = 0.5, ...)

Arguments

object
An object with S3 class "samLL".
newdata
The testing dataset represented in a n by d matrix, where n is testing sample size and d is dimension.
thol
The decision probability threshold for prediction. The default value is 0.5.
...
System reserved. (No specific usage)

Value

  • probsEstimated Posterior Probability for Prediction also represented in a n by the length of lambda matrix, where n is testing sample size.
  • labelsPredicted labels also represented in a n by the length of lambda matrix, where n is testing sample size.

Details

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

References

P. Ravikumar, J. Lafferty, H.Liu and L. Wasserman. "Sparse Additive Models", Journal of Royal Statistical Society: Series B, 2009. T. Zhao and H.Liu. "Sparse Additive Machine", International Conference on Artificial Intelligence and Statistics, 2012.

See Also

samLL