Skip to main content

TextMetricRegistration

Trait TextMetricRegistration 

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

Trait to fake variadic generics.

Required Methods§

Source

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§

Source§

impl<M1, LC: LearningComponentsTypes> TextMetricRegistration<LC> for (M1,)

Source§

impl<M1, M2, LC: LearningComponentsTypes> TextMetricRegistration<LC> for (M1, M2)

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§