January 2019
Intermediate to advanced
342 pages
9h 17m
English
The surprise package can be downloaded through conda using the following command:
conda install -c conda-forge scikit-surprise
The algorithm corresponding to SVD++ is named as SVDpp in surprise. We can load all the required packages as follows:
import numpy as npfrom surprise import SVDpp # SVD++ algorithmfrom surprise import Datasetfrom surprise import accuracyfrom surprise.model_selection import cross_validatefrom surprise.model_selection import train_test_split
The 100K Movie lens dataset can be downloaded and made available to the code using the Dataset.load_builtin utility in surprise. We split the data into training and holdout test set in the 80 to 20 ratio. The data-processing ...
Read now
Unlock full access