标签: python lightgbm
我已经通过conda install -c conda-forge lightgbm安装了lightgbm并成功导入了import lightgbm as lgb,但是当我尝试train.lgm时遇到了以下错误:AttributeError:模块'lightgbm'没有属性'Dataset'。 我还导入了from sklearn import *。我更新了scikit-learn,但也不起作用。任何帮助,将不胜感激!
conda install -c conda-forge lightgbm
import lightgbm as lgb
train.lgm
from sklearn import *