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 7732582 commit 06d7d71Copy full SHA for 06d7d71
python/model/base.py
@@ -168,7 +168,7 @@ def _validate(self, input):
168
var_type = CategoricalDtype(categories=categories, ordered=True)
169
new_cat = set(df[name].unique()).difference(categories)
170
if len(new_cat):
171
- msg = 'Unexpected categorical value in input data: {}'.format(new_cat)
+ msg = 'Unexpected categorical value for {}: {}'.format(name, new_cat)
172
raise ValueError(msg)
173
else:
174
msg = 'Missing "categories" for "{}" in metadata'.format(name)
0 commit comments