In [1]:
import sys
sys.path.append('../..')
In [2]:
from bestPy import RecoBasedOn
from bestPy.datastructures import Transactions
In [3]:
file = '../tests/data/data50.csv' # Enter the path to and name of your data file here!
data = Transactions.from_csv(file)
In [4]:
customer = '7' # Specify the ID of the customer you want to make recommendations for here!
recommendation = RecoBasedOn(data)
top_five = recommendation.for_one(customer)
for article in top_five:
print(article)
That wasn't too hard, now, was it?
In [ ]: