MetricRegistration

Trait MetricRegistration 

pub trait MetricRegistration<LC>: Sized{
    // Required method
    fn register(self, builder: SupervisedTraining<LC>) -> SupervisedTraining<LC>;
}
Expand description

Trait to fake variadic generics.

Required Methods§

fn register(self, builder: SupervisedTraining<LC>) -> SupervisedTraining<LC>

Register the metrics.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<M1, LC> MetricRegistration<LC> for (M1,)

§

fn register(self, builder: SupervisedTraining<LC>) -> SupervisedTraining<LC>

§

impl<M1, M2, LC> MetricRegistration<LC> for (M1, M2)

§

fn register(self, builder: SupervisedTraining<LC>) -> SupervisedTraining<LC>

§

impl<M1, M2, M3, LC> MetricRegistration<LC> for (M1, M2, M3)
where LC: LearningComponentsTypes, <<<LC as LearningComponentsTypes>::TrainingModel as TrainStep>::Output as ItemLazy>::ItemSync: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input>, <<<LC as LearningComponentsTypes>::InferenceModel as InferenceStep>::Output as ItemLazy>::ItemSync: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static,

§

fn register(self, builder: SupervisedTraining<LC>) -> SupervisedTraining<LC>

§

impl<M1, M2, M3, M4, LC> MetricRegistration<LC> for (M1, M2, M3, M4)
where LC: LearningComponentsTypes, <<<LC as LearningComponentsTypes>::TrainingModel as TrainStep>::Output as ItemLazy>::ItemSync: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input>, <<<LC as LearningComponentsTypes>::InferenceModel as InferenceStep>::Output as ItemLazy>::ItemSync: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static, M4: Metric + Numeric + 'static,

§

fn register(self, builder: SupervisedTraining<LC>) -> SupervisedTraining<LC>

§

impl<M1, M2, M3, M4, M5, LC> MetricRegistration<LC> for (M1, M2, M3, M4, M5)
where LC: LearningComponentsTypes, <<<LC as LearningComponentsTypes>::TrainingModel as TrainStep>::Output as ItemLazy>::ItemSync: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input> + Adaptor<<M5 as Metric>::Input>, <<<LC as LearningComponentsTypes>::InferenceModel as InferenceStep>::Output as ItemLazy>::ItemSync: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input> + Adaptor<<M5 as Metric>::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static, M4: Metric + Numeric + 'static, M5: Metric + Numeric + 'static,

§

fn register(self, builder: SupervisedTraining<LC>) -> SupervisedTraining<LC>

§

impl<M1, M2, M3, M4, M5, M6, LC> MetricRegistration<LC> for (M1, M2, M3, M4, M5, M6)
where LC: LearningComponentsTypes, <<<LC as LearningComponentsTypes>::TrainingModel as TrainStep>::Output as ItemLazy>::ItemSync: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input> + Adaptor<<M5 as Metric>::Input> + Adaptor<<M6 as Metric>::Input>, <<<LC as LearningComponentsTypes>::InferenceModel as InferenceStep>::Output as ItemLazy>::ItemSync: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input> + Adaptor<<M5 as Metric>::Input> + Adaptor<<M6 as Metric>::Input>, M1: Metric + Numeric + 'static, M2: Metric + Numeric + 'static, M3: Metric + Numeric + 'static, M4: Metric + Numeric + 'static, M5: Metric + Numeric + 'static, M6: Metric + Numeric + 'static,

§

fn register(self, builder: SupervisedTraining<LC>) -> SupervisedTraining<LC>

Implementors§