Skip to content

Commit fd5341a

Browse files
authored
FIX show the right indices with zero-based indexing in SMOTENC (#939)
1 parent afe2132 commit fd5341a

File tree

1 file changed

+1
-1
lines changed
  • imblearn/over_sampling/_smote

1 file changed

+1
-1
lines changed

imblearn/over_sampling/_smote/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def _validate_estimator(self):
529529
):
530530
raise ValueError(
531531
f"Some of the categorical indices are out of range. Indices"
532-
f" should be between 0 and {self.n_features_}"
532+
f" should be between 0 and {self.n_features_ - 1}"
533533
)
534534
self.categorical_features_ = categorical_features
535535
self.continuous_features_ = np.setdiff1d(

0 commit comments

Comments
 (0)