Lenskit 0.8.4 in Google Colab

49 views
Skip to first unread message

Bill Noffsinger

unread,
Mar 16, 2020, 12:53:54 PM3/16/20
to LensKit Recommender Toolkit Development and Support
When using the J Notebook in Google Colab pip install lenskit appears to run OK and the 2.1.1 Setup code from the Jan 09 2020 Release 0.8.4 Doc produces no error.
But when executing the code below from the 2.1.2 section of the Doc

ml100k = ML100K('ml-100k')
ratings = ml100k.ratings
ratings.head()

This is the result

FileNotFoundError                         Traceback (most recent call last)
<ipython-input-9-eb8f7c1dae6b> in <module>()
      1 ml100k = ML100K('ml-100k')
----> 2 ratings = ml100k.ratings
      3 ratings.head()

suggesting the ML100K dataset is not found in Colab. Is another step needed to import the ML100K dataset into Colab?

Reply all
Reply to author
Forward
0 new messages