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

  • | |

    Running a Classification Tree – Decision Tree – Data Analysis and Intrepretation

    Overview My research work deals with Ghana, a country from the Gapminder dataset as has already been discussed from the beginning and progression through this course. Picture Of My Final Decision Tree Outputted From My Python Program   The variables in my observation dataset are all quantitative. For the purposes of this assignment, I have binned…

  • | |

    Testing a Basic Linear Regression Model – Data Analysis and Intrepretation

    Testing a Basic Linear Regression Model Background My research work deals with Ghana, a country from the Gapminder dataset as has already been discussed from the beginning and progression through this course.     1)     Program  Code and Output

           #####################     OUTPUT BEGIN  #####################     Axes(0.125,0.125;0.775×0.775) Describe the centered…

  • Opening and Reading Text Files by Buffer Size – Python

    Today, I went through “Opening and Reading Text Files by Buffer Size” with a friend of mine who wanted to grasp the basic concepts of Python This is a simple but straightforward tutorial into the “Opening and Reading Text Files by Buffer Size We further delved into opening and reading binary files. In our case…

  • | | |

    Deploy Productionalise Azure Machine Learning Algorithm Using Python

    This is a script to consume Azure Machine Learning Model which you build using Azure ML Studio. So basically this is a Request-Response Service (RRS)  according to Microsoft. This was a Boosted Decision Tree Algorithm build with Census Adult Data which is available as one of the Sample DataSet in Azure ML. You can adapt the…

  • Getting Stock Prices from Yahoo and plotting Python 3 Matplolib Urllib

    This is  some quick notes about getting stock data from Yahoo and plotting it using Matplotlib . The Python version used is Python 3.5 Credits to sentdex.  You can check him out on Youtube. In [11]:

      In [12]:

      In [13]:

      In [14]:

        Want more information like this?

  • |

    Rank Sort Series DataFrames in Python Pandas Numpy

      In this quick notes, we will have a look at Rank and Sort in Series and DataFrames in Python In [1]:

      In [3]:

      Out[3]:

    In [4]:

      Out[4]:

    In [5]:

     

    Out[5]:

    In [6]:

      Out[6]:

    In [7]:

      In [8]:

      Out[8]:

    In [10]:

     …

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

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