std1.0.0-beta-7 SafeC docs

std :: ml::module

Trait std::Objective

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

trait Objective {
    &FloatTensor loss(const &FloatTensor x, const &FloatTensor y);
}

Required methods

The model's own training loss on a batch (1 element).