Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

canFit

Testing Compatibility of Algorithm and Models


Description

canFit is an S4 generic that tests if an algorithm can fit a particular model.

Usage

canFit(x, y, ...)

  ## S4 method for signature 'NMFStrategy,character'
canFit(x, y,
    exact = FALSE)

Arguments

x

an object that describes an algorithm

y

an object that describes a model

...

extra arguments to allow extension

exact

for logical that indicates if an algorithm is considered able to fit only the models that it explicitly declares (TRUE), or if it should be considered able to also fit models that extend models that it explicitly fits.

Methods

canFit

signature(x = "NMFStrategy", y = "character"): Tells if an NMF algorithm can fit a given class of NMF models

canFit

signature(x = "NMFStrategy", y = "NMF"): Tells if an NMF algorithm can fit the same class of models as y

canFit

signature(x = "character", y = "ANY"): Tells if a registered NMF algorithm can fit a given NMF model

See Also

Other regalgo: nmfAlgorithm


NMF

Algorithms and Framework for Nonnegative Matrix Factorization (NMF)

v0.23.0
GPL (>= 2)
Authors
Renaud Gaujoux, Cathal Seoighe
Initial release
2020-07-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.