python -scikit

在用http://muricoca.github.io/crab/tutorial.html 里给的例子时,会发现不能运行,改库里的两个小地方就好了。

1. no module named learn: 把scikit.base里的from scikit.learn.base改成from sklearn.base

2. no attribute named _set_params:把scikit.crab.recommender.knn文件里调用_set_params()改成set_params(),因为在sklearn.base里定义的方法是set_params()

原文地址:https://www.cnblogs.com/yuchenkit/p/5452690.html