ModuleNotFoundError: No module named ‘sklearn.ensemble.gradient_boosting‘

ModuleNotFoundError: No module named ‘sklearn.ensemble.gradient_boosting’

使用joblib加载模型时报错,以为是joblib问题,使用pickle 不可,搜索后发现是scikit版本问题,当前python 3.6.8, scikit 1.0.2

 ModuleNotFoundError: No module named 'sklearn.ensemble.gradient_boosting'

解决过程如下:

(1)scikit降级到0.21.3 报错

AttributeError: 'LeastSquaresError' object has no attribute 'get_init_raw_predictions'

(2)scikit降级到0.20.3 成功

你可能感兴趣的:(python,sklearn,boosting,python)