Generic function to transform data with pre-trained model
(inherits from mlapiTransformation)
# S3 method for Matrix
transform(`_data`, model, ...)# S3 method for matrix
transform(`_data`, model, ...)
= x in other methods.
A matrix like object, should inherit from Matrix
or matrix
object of class mlapiTransformation
which
implements method $transform(x, ...)
additional data/model dependent arguments to downstream functions.