-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[dask] TypeError: Unknown type of parameter:init_score, got:Series #4409
Comments
Try to pass |
Error log:
code init_score = some_float_value * np.log(df[some_column] / (int(1) - df[some_column]))
# type(df): <class 'dask.dataframe.core.DataFrame'>
# type(init_score): <class 'dask.dataframe.core.Series'>
# failed on:
model = lgb.DaskLGBMClassifier(**TRAINING_PARAMETERS, client=client, init_score=init_score)
model.fit(df[feature_list], df[target_list]) |
Thanks very much for including a bit more information. I've reformatted #4409 (comment) a bit for better readability. Please see https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax if you are new to GitHub and not familiar with GitHub-flavored markdown used in posts here. I can see from your code that you are passing Please consult the documentation, which shows where to pass these values:
If that works for you, please comment here so the issue can be closed. If the error persists, please provide a fully reproducible example. That should be code that can be run without modification which reproduces the error. If you are not experienced in this, please see the definition at https://stackoverflow.com/help/minimal-reproducible-example for some guidance. Your reproducible example should also include answers to these questions which were asked in the issue template when you opened this issue:
|
Worked fine, thanks! |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Description
Reproducible example
Environment info
LightGBM version or commit hash:
Command(s) you used to install LightGBM
Additional Comments
The text was updated successfully, but these errors were encountered: