Giter Club home page Giter Club logo

Comments (12)

JoannaMisztalRadecka avatar JoannaMisztalRadecka commented on September 27, 2024 1

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.

imqianyi avatar imqianyi commented on September 27, 2024 1
  1. install pip install -U scikit-learn.
  2. fix the code scikits.learn.base to sklearn.base

from crab.

psneog avatar psneog commented on September 27, 2024

I am facing the same problem on windows. Somebody help me please.

from crab.

Lawrence-Liu avatar Lawrence-Liu commented on September 27, 2024

@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.

psneog avatar psneog commented on September 27, 2024

I have installed the canopy python distribution and the program started working!

from crab.

HuihuangZhang avatar HuihuangZhang commented on September 27, 2024

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.

GizemEce avatar GizemEce commented on September 27, 2024

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.

Izzy4me avatar Izzy4me commented on September 27, 2024

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.

rmf770609 avatar rmf770609 commented on September 27, 2024

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.

DerekAI avatar DerekAI commented on September 27, 2024

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.

finlay-liu avatar finlay-liu commented on September 27, 2024

I find it can clone the source code and install by source code. It will be ok.

from crab.

benadaba avatar benadaba commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.