We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afe2132 commit fd5341aCopy full SHA for fd5341a
imblearn/over_sampling/_smote/base.py
@@ -529,7 +529,7 @@ def _validate_estimator(self):
529
):
530
raise ValueError(
531
f"Some of the categorical indices are out of range. Indices"
532
- f" should be between 0 and {self.n_features_}"
+ f" should be between 0 and {self.n_features_ - 1}"
533
)
534
self.categorical_features_ = categorical_features
535
self.continuous_features_ = np.setdiff1d(
0 commit comments