Trait linfa::traits::Transformer[][src]

pub trait Transformer<R: Records, T> {
    fn transform(&self, x: R) -> T;
}
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

Performs the checking step and calls transform on the checked hyperparameters. Returns error if checking was unsuccessful.