Trait linfa::traits::Transformer
source · Expand description
Transformation algorithms
A transformer takes a dataset and transforms it into a different one. It has no concept of state and provides therefore no method to predict new data. A typical example are kernel methods.
It should be implemented for all algorithms, also for those which can be fitted.
Required Methods§
Implementors§
impl<R: Records, T, P: TransformGuard> Transformer<R, Result<T, <P as ParamGuard>::Error>> for Pwhere
P::Checked: Transformer<R, T>,
Performs the checking step and calls transform
on the checked hyperparameters. Returns error
if checking was unsuccessful.