text_plain_output_1.png
from lightfm import LightFM

from lightfm.datasets import fetch_movielens

data = fetch_movielens(min_rating=3.0)

model_1 = LightFM(loss='bpr')
model_1.fit(data['train'], epochs=70, num_threads=4)