package modelkit
Module type Modelkit.ESTIMATORSource
Common contract for immutable estimator specifications.
t is a training specification and fitted is the value produced by fitting it. Implementations receive RNG state explicitly.
Source
val fit :
t ->
?sample_weight:Sample_weight.t ->
rng:rng ->
feature_schema:Feature_schema.t ->
x:Matrix.t ->
y:target ->
unit ->
(fitted, Error.t) resultSource
val predict :
fitted ->
feature_schema:Feature_schema.t ->
x:Matrix.t ->
(prediction, Error.t) result