I have installed lightgbm via conda install -c conda-forge lightgbm
and imported import lightgbm as lgb
successfully, but when I try train.lgm
I get this error: AttributeError: module 'lightgbm' has no attribute 'Dataset' .
I also imported from sklearn import *
. I updated scikit-learn but didn't work either. Any help would be appreciated!
Asked
Active
Viewed 1,202 times
0

ga4696
- 139
- 11
-
As an somehow unrelated advice, check out [Why using import * is a bad practice](https://stackoverflow.com/questions/2386714/why-is-import-bad) – Bubble Bubble Bubble Gut Jul 27 '18 at 21:06
-
Why do you expect `train.lgm` to work at all? Did you probably mean `lgb.train()`? If so, we will need to see how to you call this function, as it seems there is something wrong in the parameter names that you provide – Mischa Lisovyi Jul 30 '18 at 08:45