Fix misleading error when feature names are missing during inference (#10814)
This commit is contained in:
parent
67c8c96784
commit
de00e07087
@ -3129,7 +3129,7 @@ class Booster:
|
||||
|
||||
if feature_names is None and self.feature_names is not None:
|
||||
raise ValueError(
|
||||
"training data did not have the following fields: "
|
||||
"data did not contain feature names, but the following fields are expected: "
|
||||
+ ", ".join(self.feature_names)
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user