Skip to content

Commit e1fbbdb

Browse files
avm19jjerphan
authored andcommitted
FIX trigger condition of one part of a warning from check_feature_names (scikit-learn#23091)
1 parent 76ab424 commit e1fbbdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def add_names(names):
485485
message += "Feature names seen at fit time, yet now missing:\n"
486486
message += add_names(missing_names)
487487

488-
if not missing_names and not missing_names:
488+
if not missing_names and not unexpected_names:
489489
message += (
490490
"Feature names must be in the same order as they were in fit.\n"
491491
)

0 commit comments

Comments
 (0)