Susan Li

Hi Susan,

Thank you for your answer. Did you try surprise applied to book crossings dataset? I’m facing a problem testing it with this dataset, if you can help me I will be grateful!

I get an error:

from surprise import SVD
#load book_ratings dataset which contains (user-id, ISBN and book rating [0..5])
df = pd.read_csv(“Desktop\ML project\BX-CSV-Dump\BX-Book-Ratings.csv”, sep=’;’,encoding = “CP1252”)
# Create the reader in the proper format
reader = Reader(line_format=’user item rating’, sep=’;’, rating_scale=(0,10))
ratings = Dataset.load_from_df(df, reader)

# Test that surprise is working by running SVD on the dataset
algo = SVD()
evaluate(algo, ratings, measures=[‘RMSE’, ‘MAE’])

UnicodeEncodeError: 'ascii' codec can't encode character u'\x90' in position 0: ordinal not in range(128)
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.