Spaces:
Runtime error
Runtime error
typo in recsys
Browse files- recommender_system.py +3 -4
recommender_system.py
CHANGED
@@ -7,7 +7,6 @@ from sklearn.manifold import TSNE
|
|
7 |
from os import cpu_count
|
8 |
import numpy as np
|
9 |
import time
|
10 |
-
import random
|
11 |
|
12 |
from utils import load_and_preprocess_data
|
13 |
|
@@ -30,8 +29,8 @@ SIDEBAR_DESCRIPTION = """
|
|
30 |
|
31 |
## What is it?
|
32 |
A recommender system is a tool that suggests something new to a particular
|
33 |
-
user that she/he might be
|
34 |
-
the number of items
|
35 |
|
36 |
## How does it work?
|
37 |
A recommender system internally finds similar users and similar items,
|
@@ -44,7 +43,7 @@ already bought. If they are new and similar, the model suggests them.
|
|
44 |
|
45 |
## How we prepare the data
|
46 |
For each user, we compute the quantity purchased for every single item.
|
47 |
-
This will be the metric the value considered by the
|
48 |
the similarity. The item that a user has never bought will
|
49 |
be left at zero. These zeros will be the subject of the recommendation.
|
50 |
""".lstrip()
|
|
|
7 |
from os import cpu_count
|
8 |
import numpy as np
|
9 |
import time
|
|
|
10 |
|
11 |
from utils import load_and_preprocess_data
|
12 |
|
|
|
29 |
|
30 |
## What is it?
|
31 |
A recommender system is a tool that suggests something new to a particular
|
32 |
+
user that she/he might be interested in. It becomes useful when
|
33 |
+
the number of items a user can choose from is high.
|
34 |
|
35 |
## How does it work?
|
36 |
A recommender system internally finds similar users and similar items,
|
|
|
43 |
|
44 |
## How we prepare the data
|
45 |
For each user, we compute the quantity purchased for every single item.
|
46 |
+
This will be the metric the value considered by the model to compute
|
47 |
the similarity. The item that a user has never bought will
|
48 |
be left at zero. These zeros will be the subject of the recommendation.
|
49 |
""".lstrip()
|