Skip to contents

Compute the maximum loglikelihood function of the PSD model in validation set using svi method.

Usage

psd_loglikelihood_svi(G, K, P, maxiter = 2000)

Arguments

G

The I x J matrix of counts; all entries of G should be taken from {0,1,2}.

K

An integer 2 or greater giving the matrix rank.

P

The P in the output list of psd_fit_svi.

maxiter

The maximum number of iterations in validation set.

Value

A value indicates the accuracy of the prediction in validation set.

Examples

# Refer to Articles in AwesomePackage.