Learn R Programming

sgdGMF (version 1.0)

print.initgmf: Print the fundamental characteristics of an initialized GMF

Description

Print some summary information of an initialized GMF model.

Usage

# S3 method for initgmf
print(x, ...)

Value

No return value, called only for printing.

Arguments

x

an object of class initgmf

...

further arguments passed to or from other methods

Examples

Run this code
# Load the sgdGMF package
library(sgdGMF)

# Generate data from a Poisson model
data = sim.gmf.data(n = 100, m = 20, ncomp = 5, family = poisson())

# Fit a GMF model with 3 latent factors
init = sgdgmf.init(data$Y, ncomp = 3, family = poisson())

# Print the GMF object
print(init)

Run the code above in your browser using DataLab