FIX trigger condition of one part of a warning from check_feature_names
@@ -485,7 +485,7 @@ class BaseEstimator:
message += "Feature names seen at fit time, yet now missing:\n"
message += add_names(missing_names)
- if not missing_names and not missing_names:
+ if not missing_names and not unexpected_names:
message += (
"Feature names must be in the same order as they were in fit.\n"
)
