-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sklearn-API: better description for syntax errors #4875
Comments
cibic89
changed the title
Sklearn-API: better descriptions with syntax errors
Sklearn-API: better description for syntax errors
Sep 19, 2019
We can add more checks for it like whether it's a list containing tuple, but might be too rigid. Or something like iterable... Do you have any suggestions? |
The easiest option is to return the native or near native error. Pretty content personally with the python API error descriptions returned.
…________________________________
From: Jiaming Yuan <[email protected]>
Sent: Thursday, September 19, 2019 5:54:40 PM
To: dmlc/xgboost <[email protected]>
Cc: George J <[email protected]>; Author <[email protected]>
Subject: Re: [dmlc/xgboost] Sklearn-API: better description for syntax errors (#4875)
We can add more checks for it like whether it's a list containing tuple, but might be too rigid. Or something like iterable... Do you have any suggestions?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#4875?email_source=notifications&email_token=AFM4L5YL7PH74O5LNSBT4ZLQKOVFBA5CNFSM4IYLVZB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7EEISA#issuecomment-533218376>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFM4L57SBA3GMP4UOO5OZYDQKOVFBANCNFSM4IYLVZBQ>.
|
@cibic89 Thanks. See if we can polish the interface more. |
trivialfis
added a commit
to trivialfis/xgboost
that referenced
this issue
Oct 10, 2019
trivialfis
added a commit
that referenced
this issue
Oct 12, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First reported here.
Windows 2016 Server/Windows 10, Anaconda v2019.07, Jupyter lab v1.0.2, xgboost v0.9
Syntax errors should give better descriptions when using the sklearn API. Let me illustrate:
The above code works fine but when do either change from the list below:
xgb_model.fit(X = X, y = y, eval_set = [X, y], eval_metric = eval_metric, early_stopping_rounds = 10)
or
xgb_model.fit(X = X, y = y, eval_metric = eval_metric, early_stopping_rounds = 10)
And both will give you this unintuitive error:
The text was updated successfully, but these errors were encountered: