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

Size of feature_names error, should equal with total number of features #540

Closed
yangdi92 opened this issue May 22, 2017 · 5 comments
Closed

Comments

@yangdi92
Copy link

yangdi92 commented May 22, 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: win10 64bit
CPU: i5
R version: microsoft R 3.32
when i run the demo:

require(lightgbm)
require(methods)
data(agaricus.train, package = "lightgbm")
data(agaricus.test, package = "lightgbm")
train <- agaricus.train
test <- agaricus.test
class(train$label)
class(train$data)
print("Training lightgbm with sparseMatrix")
bst <- lightgbm(data = train$data,
label = train$label,
num_leaves = 4,
learning_rate = 1,
nrounds = 2,
objective = "binary")

Error Message:

Error in lgb.call("LGBM_DatasetCreateFromCSC_R", ret = handle, private$raw_data@p, :
api error: Size of feature_names error, should equal with total number of features

i had succedd in runing this program ever, so, what is the problem?

thank you!

@guolinke
Copy link
Collaborator

Just test it on latest code, and it runs successfully.
Can you try re-install the latest code and restart R, then test again ?

@yangdi92
Copy link
Author

yangdi92 commented May 22, 2017 via email

@yangdi92
Copy link
Author

yangdi92 commented May 22, 2017 via email

@guolinke
Copy link
Collaborator

@yangdi92 the latest master branch.

@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

2 participants