model_pred: The predict function for the mSIM package

Description Usage Arguments Value Examples

View source: R/model_pred.R

Description

The predict function for the mSIM package

Usage

1
model_pred(Y, X, B, Y.true, X.pred)

Arguments

Y

The training index matrix

X

The training covariate matrix

B

The coefficient matrix

Y.true

The groundtruth for predicting index matrix

X.pred

The covariate matrix for prediction

Value

A list that contains the prediction result of Y and the MSE loss

Examples

1
pred = predict(Y = Y, X = X, real.MSIM$B.sparse, Y.true = Y.true, X.pred = X.pred)

echi/mSIM documentation built on Oct. 6, 2020, 11:09 a.m.