Trait Adaptor
pub trait Adaptor<T> {
// Required method
fn adapt(&self) -> T;
}Expand description
Adaptor are used to transform types so that they can be used by metrics.
This should be implemented by a model’s output type for all metric inputs that are registered with the specific learning paradigm (i.e. SupervisedTraining).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".