Skip to content

Commit 12c6c73

Browse files
authored
fix: realign PreprocessingError variants with error strings (#434)
1 parent 17f8696 commit 12c6c73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • algorithms/linfa-preprocessing/src

algorithms/linfa-preprocessing/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ pub enum PreprocessingError {
1313
NotEnoughSamples,
1414
#[error("not a valid float")]
1515
InvalidFloat,
16-
#[error("minimum value for MinMax scaler cannot be greater than the maximum")]
17-
TokenizerNotSet,
1816
#[error("Tokenizer must be defined after deserializing CountVectorizer by calling force_tokenizer_redefinition")]
17+
TokenizerNotSet,
18+
#[error("minimum value for MinMax scaler cannot be greater than the maximum")]
1919
FlippedMinMaxRange,
2020
#[error("n_gram boundaries cannot be zero (min = {0}, max = {1})")]
2121
InvalidNGramBoundaries(usize, usize),

0 commit comments

Comments
 (0)