fit: Extracting Fitted Models

Description Usage Arguments Details Methods (by generic)

Description

The functions fit and minfit are S4 genetics that extract the best model object and the best fit object respectively, from a collection of models or from a wrapper object.

Usage

1
2
3
4
5
fit(object, ...)

fit(object) <- value

minfit(object, ...)

Arguments

object

an object fitted by some algorithm, e.g. as returned by the function nmf.

...

extra arguments to allow extension

value

replacement value

Details

A fit object differs from a model object in that it contains data about the fit, such as the initial RNG settings, the CPU time used, etc..., while a model object only contains the actual modelling data such as regression coefficients, loadings, etc...

That best model is generally defined as the one that achieves the maximum/minimum some quantitative measure, amongst all models in a collection.

In the case of NMF models, the best model is the one that achieves the best approximation error, according to the objective function associated with the algorithm that performed the fit(s).

Methods (by generic)

fit:

fit<-:

minfit:


renozao/NMF documentation built on June 14, 2020, 9:35 p.m.