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

  • |

    Save Python Pivot Table in Excel Sheets ExcelWriter

    Untitled This is a quick script on how to save Python pivot_table in an excel file. Credit to  pbpython In [1]:

      In [2]:

     

    In [8]:

      Out[8]: First Name Last Name Sex Phone Fax Email Address Booking Date Departure Date Arrival Date Address1 … Number of Passengers Total Cost Currency Numeric Code…

  • ImportError: No module named ‘scikits’ – Python Fix Jupyter Notebook

    If you have the above problem, to fix this, follow these guidelines as advised by Flowerowl  at this link (https://github.com/muricoca/crab/issues/92): The steps are as follows:   Don’t install crab in this way: pip install crab / easy_install crab You can find crab in pypi.python.org, this is not our scikits.crab source Solution: git clone https://github.com/muricoca/crab.git python setup.py…

  • ImportError: No module named learn.base Crab Python Fix

    I was working on Recommender System and had a problem when i tried importing from scikits.crab.recommenders.knn import UserBasedRecommender. I encountered the following error ImportError: No module named learn.base I did research on the web and found one good solution but it was in Chinese. Here is the link and credit to the original fixer :…

  • | |

    Test a Logistic Regression Model – Data Analysis and Intrepretation

    OVERVIEW My research work deals with Ghana, a country from the Gapminder dataset.     What I found in my logistic regression analysis. Discussion of the results for the associations between all of my explanatory variables and my response variable   The primary quantitative explanatory variable in my regression analysis is the Income Per Person…

  • Basic Plotting Using Bokeh Python Pandas Library – Scatter, Line Visualizations

      Bokeh is a powerful framework for data visualization in Python. Here I take a look at straightforward plotting and visualization using this powerful library. Credit to PythonHow. You can check him out on Youtube bokeh.models #It is a low level interface which involves a lot of work bokeh.plotting # It is a middle level interface bokeh.chart #…

  • Matplotlib Pyplot Plt Python Pandas Data Visualization Plotting

      This is some quick notes about graphing or plotting graphs with Matplotlib in Python. Credits to sentdex.  You can check him out on Youtube.

      In [4]:

      In [10]:

      In [14]:

      In [20]:

      In [23]:

      In [30]:

      Out[30]:

    In [48]:

        Want more information like this?

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 *