Enum linfa_preprocessing::error::PreprocessingError[][src]

pub enum PreprocessingError {
Show 15 variants WrongMeasureForScaler(StringString), TooManySubsamples(usizeusize), NotEnoughSamples, InvalidFloat, FlippedMinMaxRange, InvalidNGramBoundaries(usizeusize), FlippedNGramBoundaries(usizeusize), InvalidDocumentFrequencies(f32f32), FlippedDocumentFrequencies(f32f32), RegexError(Error), IoError(Error), EncodingError(Cow<'static, str>), LinalgError(LinalgError), NdarrayStatsEmptyError(EmptyInput), LinfaError(Error),
}

Variants

WrongMeasureForScaler(StringString)

Tuple Fields of WrongMeasureForScaler

0: String1: String
TooManySubsamples(usizeusize)

Tuple Fields of TooManySubsamples

0: usize1: usize
NotEnoughSamples
InvalidFloat
FlippedMinMaxRange
InvalidNGramBoundaries(usizeusize)

Tuple Fields of InvalidNGramBoundaries

0: usize1: usize
FlippedNGramBoundaries(usizeusize)

Tuple Fields of FlippedNGramBoundaries

0: usize1: usize
InvalidDocumentFrequencies(f32f32)

Tuple Fields of InvalidDocumentFrequencies

0: f321: f32
FlippedDocumentFrequencies(f32f32)

Tuple Fields of FlippedDocumentFrequencies

0: f321: f32
RegexError(Error)

Tuple Fields of RegexError

0: Error
IoError(Error)

Tuple Fields of IoError

0: Error
EncodingError(Cow<'static, str>)

Tuple Fields of EncodingError

0: Cow<'static, str>
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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.