Crab Recommender System – Framework in Python Example and installation Problem Fix

 

This is just to show that the import errors which were encountered during the installation of Crab, a Recommender Framework in Python  worked fine with the fixes I earlier outlined.

These were the errors and how they were fixed:

  1. ImportError: No module named ‘scikits
  2. ImportError: No module named learn.base

 

The code below is the example of how the Crab Recommender Works as outlined by Crab:

In [3]:


 

In [4]:

 

In [5]:

 

In [6]:

 

In [7]:

 

In [8]:

 

In [9]:

 

In [10]:

 

In [11]:

 

In [12]:

 

In [13]:

 

In [14]:

 

In [15]:

 

In [16]:

 

In [17]:

 

Out[17]:
Watch a quick video of the fix here:

Want more information like this?

Similar Posts

2 Comments

    1. Hi Soufiane,
      just do a full import. hence instead of “from crab.recommenders.knn import UserBasedRecommender” put scikits infront of the crab. So it should be like this.
      “from scikits.crab.recommenders.knn import UserBasedRecommender”
      Let me know if that helps.

Leave a Reply to Soufiane FADIL Cancel reply

Your email address will not be published. Required fields are marked *