Enum linfa_preprocessing::error::PreprocessingError [−][src]
pub enum PreprocessingError {
Show 15 variants
WrongMeasureForScaler(String, String),
TooManySubsamples(usize, usize),
NotEnoughSamples,
InvalidFloat,
FlippedMinMaxRange,
InvalidNGramBoundaries(usize, usize),
FlippedNGramBoundaries(usize, usize),
InvalidDocumentFrequencies(f32, f32),
FlippedDocumentFrequencies(f32, f32),
RegexError(Error),
IoError(Error),
EncodingError(Cow<'static, str>),
LinalgError(LinalgError),
NdarrayStatsEmptyError(EmptyInput),
LinfaError(Error),
}
Variants
RegexError(Error)
Tuple Fields of RegexError
0: Error
IoError(Error)
Tuple Fields of IoError
0: Error
LinalgError(LinalgError)
Tuple Fields of LinalgError
0: LinalgError
NdarrayStatsEmptyError(EmptyInput)
Tuple Fields of NdarrayStatsEmptyError
0: EmptyInput
LinfaError(Error)
Tuple Fields of LinfaError
0: Error
Trait Implementations
Fits the input dataset accordng to the scaler method. Will return an error if the dataset does not contain any samples or (in the case of MinMax scaling) if the specified range is not valid.
type Object = LinearScaler<F>
type Object = FittedWhitener<F>
Performs the conversion.
Performs the conversion.