Generic function to fit models (inherited from mlapiEstimation)
fit(x, model, y = NULL, ...)# S3 method for Matrix
fit(x, model, y = NULL, ...)
# S3 method for matrix
fit(x, model, y = NULL, ...)
A matrix like object, should inherit from Matrix
or matrix
instance of class estimator
which should implement method
with signature $fit(x, y, ...)
NULL
by default. Optional response variable for supervised learning models.
Should inherit from vector
or Matrix
or matrix
. See documentation
for corresponding models.
additional data/model dependent arguments to downstream functions.
invisible(object$self())