Prediction function for S3 class "samHL"

Description

Predict the labels for testing data.

Usage

1
2
## S3 method for class 'samHL'
predict(object, newdata, thol = 0, ...)

Arguments

object

An object with S3 class "samHL".

newdata

The testing dataset represented in a n by d matrix, where n is testing sample size and d is dimension.

thol

The decision value threshold for prediction. The default value is 0.

...

System reserved. (No specific usage)

Details

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

Value

values

Predicted decision values also represented in a n by the length of lambda matrix, where n is testing sample size.

labels

Predicted labels also represented in a n by the length of lambda matrix, where n is testing sample size.

Author(s)

Tuo Zhao, Xingguo Li, Han Liu, Kathryn Roeder
Maintainers: Tuo Zhao<tourzhao@gmail.com>

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

samHL