package modelkit
Module type Modelkit.TRANSFORMERSource
Contract for a learned matrix-to-matrix transformation.
fit receives only the training partition. y is optional because some transformations are supervised while others depend only on features.
Source
val fit :
t ->
?sample_weight:Sample_weight.t ->
rng:rng ->
feature_schema:Feature_schema.t ->
x:Matrix.t ->
y:target option ->
unit ->
(fitted, Error.t) result