Comments (12)
I had the same problem, but I fixed it after installing scikits-learn on Ubuntu according to instructions from http://scikit-learn.org/stable/install.html, I had to change the import from:
from scikits.learn.base import BaseEstimator
to:
from sklearn.base import BaseEstimator
from crab.
- install pip install -U scikit-learn.
- fix the code scikits.learn.base to sklearn.base
from crab.
I am facing the same problem on windows. Somebody help me please.
from crab.
@IIUJ-JoannaMisztal is right about this. This project is toooooo old, back then scikit-learn was called scikits.learn. So you need to update the code and recompile it yourself.
from crab.
I have installed the canopy python distribution and the program started working!
from crab.
According to Installing Crab, you should install scikits.learn. However, from scikit-learn_doc
Warning As of version 0.9 (released in September 2011), the import path for scikit-learn has changed from scikits.learn to sklearn
so maybe the author should update the source code!
from crab.
Hello,
I tried all the things you listed but i am still getting error while i am importing "from crab.recommenders.knn import UserBasedRecommender". And 3 months ago i correct it as " from scikits.crab.recommenders.knn.classes import UserBasedRecommender" and it worked but now it does not work? Does anyone have problems with it currently and know how to fix it?
from crab.
So... anyone has an experience what i really needs to refactor for newest version of scikits to work properly? Or i should use the old one? I know project is old, but my tutor adviced it for my, to do simply recomendation system module and now it is not funny -.-
from crab.
Hi, I’ve changed “scikits.learn.base” to “sklearn.base” both
@ scikits/crab/base.py
@ scikits/crab/metrics/classes.py
And I still got problem with
“from scikits.crab.recommenders.knn import UserBasedRecommender”
by ImportError: No module named base
Is there anything I did wrong?
from crab.
I have made following change in the source code:
#from scikits.learn.base import BaseEstimator
from sklearn.base import BaseEstimator
then reinstall crab using the following command in crab directory
python setup.py install
Now, it seems to be more health.
from crab.
I find it can clone the source code and install by source code. It will be ok.
from crab.
This did the trick for me:
http://datapandas.com/index.php/2016/08/21/importerror-no-module-named-learn-base-crab-python-fix/
from crab.
Related Issues (20)
- no module named crab HOT 4
- Is the project alive? HOT 8
- error
- The test ends with "FAILED(errors=1, failures=4)"
- python34 how to deal with axis(=-1) out of bounds HOT 1
- Using Python 2.7.13 cannot import scikits.crab
- ImportError: No module named crab.metrics.classes
- Something wrong about the calculation of precision and recall
- 按照官网上操作会报错
- crab tutorial
- Bad scikit-learn import in crab/base.py HOT 3
- ImportError: No module named crab HOT 10
- How do I set nhood_size when I use UserBasedRecommender.recommend to chose the number of nearest neigbours?
- No Attribute named _set_params HOT 2
- Nose test fails. HOT 2
- How to run test file?
- I could not find FileDataModel module. It is not located in the \models folder. Where is it? > <
- crab with Python 2.7.3
- It contains a serious bug. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crab.