predict.kmr: Make prediction with a "'kmr'" object

Description Usage Arguments Value See Also

Description

Similar to other predict methods, this function predicts fitted values from a fitted "kmr" object.

Usage

1
2
## S3 method for class 'kmr'
predict(object, newx, lambda = 1, ...)

Arguments

object

Fitted "kmr" model object.

newx

Matrix of new values for x or kernel matrix for new values crossing old values for x, at which predictions are to be made.

lambda

Value(s) of the regularization parameter, a single scalar or a sequence of values. Default is 1.

...

Not used. Other arguments to predict.

Value

A matrix of predicted values for the new samples (in rows) and all tasks (in columns), corresponding to the regularization parameter lambda. If lambda is a list of values, the function returns a list of matrices, corresponding to the predictions for the different values of lambda in the list.

See Also

kmr


jpvert/kmr documentation built on May 20, 2019, 7:56 a.m.