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

  • 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?

  • | | |

    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…

  • Array Processing – Python Numpy – How to work with Arrays in Python

      Hi Guys, Thanks for all your emails. In this note, we will be looking at Array Processing in Python. This is part of lectures on Learning Python for Data Analysis and Visualization by Jose Portilla on Udemy. In [3]:

      In [4]:

      In [5]:

      In [6]:

      Out[6]:

    In [7]:

      Out[7]:

    In [8]:…

  • | |

    Run Your Python and R Codes Online For Your Data Science and Machine Learning Projects Mini Projects For Free

    Sometimes, you would want to easily access and run your Python and R codes wherever you find yourself in the world once you have internet access. This is really handy when you have a mini-project you are working on , or you are going through an online tutorial, or you are trying to teach or…

  • 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…

  • Python Pandas Pivot Table Index location Percentage calculation on Two columns

    pivot table for year on year This is a quick example of how to use pivot_table,  to calculate year on year percentage sales . In [162]:

      In [163]:

     

    In [164]:

      Out[164]: First Name Last Name Sex Phone Fax Email Address Booking Date Departure Date Arrival Date Address1 … Number of Passengers…

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 *