-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
R error : Unknown parameter: nrounds #698
Comments
I repace "nrounds" with "num_trees" or "num_iterations", even remove nrounds parameter, it doesn't work.
|
@klyan |
I restarted R, But it still doesn't work for me. R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" R is free software and comes with ABSOLUTELY NO WARRANTY. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'demo()' for some demos, 'help()' for on-line help, or
Attaching package: ‘lightgbm’ The following objects are masked from ‘package:xgboost’:
|
@klyan and the |
@guolinke Seems the parameters passed in params are not correct (like ndcg_eval_at) |
@klyan Can you provide a reproducible example so we can test? |
@Laurae2 @guolinke
|
@klyan we cannot reproduce it since we don't have your data. you can use agaricus data:
Also, you can format your code for the better readability . I also try some other cases, but still not met your problem. |
@klyan updates ? |
try |
@guolinke Sorry, it's too big to upload my data. And I try my data in latest R version in MacOS, get the same error. But python package is OK for me.(I have updated my code, above) . Thanks a lot! |
@klyan can you try it without using group, and change objective to regression ? |
@guolinke
makes both of them work. |
@Laurae2 |
Maybe (one) of the reasons is the following code snipped from
No matter if you pass Fixing this won't solve the problem, which is hidden in the call to |
Error Message:
[LightGBM] [Fatal] Unknown parameter: nrounds
Error in lgb.call("LGBM_DatasetCreateFromMat_R", ret = handle, private$raw_data, :
api error: Unknown parameter: nrounds
Are there any errors in my parameter config??
The text was updated successfully, but these errors were encountered: