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

Description Usage Arguments Details Value See Also

View source: R/samLL.R

Description

Predict the labels for testing data.

Usage

1
2
## 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 value threshold for prediction. The default value is 0.5

...

System reserved (No specific usage)

Details

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

Value

probs

Estimated Posterior Probability for Prediction 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.

See Also

samLL


SAM documentation built on July 1, 2021, 9:07 a.m.