Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经通过安装 lightgbmconda install -c conda-forge lightgbm并成功导入import lightgbm as lgb,但是当我尝试时train.lgm出现此错误: AttributeError: module 'lightgbm' has no attribute 'Dataset' 。我也进口了from sklearn import *。我更新了 scikit-learn 但也没有用。任何帮助,将不胜感激!
conda install -c conda-forge lightgbm
import lightgbm as lgb
train.lgm
from sklearn import *