predict.samHL: Prediction function for S3 class '"samHL"'

View source: R/samHL.R

predict.samHLR Documentation

Prediction function for S3 class "samHL"

Description

Predict decision values and class labels for test data.

Usage

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

Arguments

object

An object with S3 class "samHL".

newdata

Numeric test matrix with n rows and d columns.

thol

Decision-value threshold used to convert scores to labels. The default value is 0.

...

Additional arguments passed to methods; currently unused.

Details

The test matrix is rescaled using the training X.min/X.ran, truncated to [0, 1], and expanded with the same spline basis used during training.

Value

values

Predicted decision values as an n by length(lambda) matrix.

labels

Predicted class labels (-1/1) as an n by length(lambda) matrix.

See Also

samHL


SAM documentation built on Feb. 19, 2026, 5:06 p.m.