std1.0.0-beta-7 SafeC docs

std :: ml::module

Function std::model_fit

#include <std/ml/module.h> source

generic<M: LossModel> struct TrainReport model_fit(
    &M m,
    &Optimizer opt,
    const &Dataset data,
    const &TrainConfig cfg,
)

trainer_fit on the model's own loss (an autoencoder's reconstruction, a VAE's ELBO, ...).