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: ErrorIoError(Error)Tuple Fields of IoError
0: ErrorLinalgError(LinalgError)Tuple Fields of LinalgError
0: LinalgErrorNdarrayStatsEmptyError(EmptyInput)Tuple Fields of NdarrayStatsEmptyError
0: EmptyInputLinfaError(Error)Tuple Fields of LinfaError
0: ErrorTrait 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.