Skip to content
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

gbm = lgb.train(params, lgb_train, num_boost_round=10, init_model='model.txt', valid_sets=lgb_eval) print("Finish 10 - 20 rounds with model file ...") Wrong type(DataFrame) for weight, should be list or numpy array #662

Closed
mmm311 opened this issue Jun 29, 2017 · 2 comments

Comments

@mmm311
Copy link

mmm311 commented Jun 29, 2017

Please search your question on previous issues, stackoverflow or other search engines before you open a new one.

For bugs and unexpected issues, please provide following information, so that we could reproduce on our system.

Environment info

Operating System:
CPU:
C++/Python/R version:

Error Message:

Reproducible examples

Steps to reproduce

@mmm311 mmm311 changed the title Wrong type(DataFrame) for weight, should be list or numpy array gbm = lgb.train(params, lgb_train, num_boost_round=10, init_model='model.txt', valid_sets=lgb_eval) print("Finish 10 - 20 rounds with model file ...") Wrong type(DataFrame) for weight, should be list or numpy array Jun 29, 2017
@wxchan
Copy link
Contributor

wxchan commented Jun 29, 2017

The weight should be 1d, not 2d DataFrame.

@chivee chivee closed this as completed Jun 30, 2017
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants