package modelkit

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.

include SPECIFICATION
Sourcetype t
Sourcetype params
Sourceval clone : t -> t
Sourceval params : t -> params
Sourcetype target
Sourcetype fitted
Sourcetype rng
Sourceval 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
Sourceval transform : fitted -> feature_schema:Feature_schema.t -> x:Matrix.t -> (Matrix.t, Error.t) result
Sourceval fitted_params : fitted -> params
Sourceval input_schema : fitted -> Feature_schema.t
Sourceval output_schema : fitted -> Feature_schema.t