module Trained: sig .. end
Trained model - requires targets
type t
Type of trained models
val calc : Interfaces.Sigs.Eval.Model.t ->
targets:Lacaml.D.vec -> t
calc model ~targets
Returns trained model given model and
targets.
val calc_mean_coeffs : t -> Lacaml.D.vec
calc_mean_coeffs trained
Returns the vector of coefficients for
computing posterior means.
val calc_log_evidence : t -> float
calc_log_evidence trained
Returns the log evidence for the trained
model (includes contribution to log evidence by underlying model).
val get_model : t -> Interfaces.Sigs.Eval.Model.t
get_model trained
Returns the model associated with the trained
model.
val get_targets : t -> Lacaml.D.vec
get_targets trained
Returns targets used for training trained.