Skip to main content

TextMetricRegistration

Trait TextMetricRegistration 

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

Trait to fake variadic generics.

Required Methods§

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

Register the metrics.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl<M1, M2, M3, M4, M5, M6, M> TextMetricRegistration<M> for (M1, M2, M3, M4, M5, M6)
where M: LearnerModel, <M as TrainStep>::Output: 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>, <M as InferenceStep>::Output: 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 + 'static, M2: Metric + 'static, M3: Metric + 'static, M4: Metric + 'static, M5: Metric + 'static, M6: Metric + 'static,

§

impl<M1, M2, M3, M4, M5, M> TextMetricRegistration<M> for (M1, M2, M3, M4, M5)
where M: LearnerModel, <M as TrainStep>::Output: 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>, <M as InferenceStep>::Output: 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 + 'static, M2: Metric + 'static, M3: Metric + 'static, M4: Metric + 'static, M5: Metric + 'static,

§

impl<M1, M2, M3, M4, M> TextMetricRegistration<M> for (M1, M2, M3, M4)
where M: LearnerModel, <M as TrainStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input>, <M as InferenceStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input> + Adaptor<<M4 as Metric>::Input>, M1: Metric + 'static, M2: Metric + 'static, M3: Metric + 'static, M4: Metric + 'static,

§

impl<M1, M2, M3, M> TextMetricRegistration<M> for (M1, M2, M3)
where M: LearnerModel, <M as TrainStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input>, <M as InferenceStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input> + Adaptor<<M3 as Metric>::Input>, M1: Metric + 'static, M2: Metric + 'static, M3: Metric + 'static,

§

impl<M1, M2, M> TextMetricRegistration<M> for (M1, M2)
where M: LearnerModel, <M as TrainStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input>, <M as InferenceStep>::Output: Adaptor<<M1 as Metric>::Input> + Adaptor<<M2 as Metric>::Input>, M1: Metric + 'static, M2: Metric + 'static,

§

impl<M1, M> TextMetricRegistration<M> for (M1,)
where M: LearnerModel, <M as TrainStep>::Output: Adaptor<<M1 as Metric>::Input>, <M as InferenceStep>::Output: Adaptor<<M1 as Metric>::Input>, M1: Metric + 'static,

Implementors§