Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ laptop_df = laptop_df.fillna(0)
|
|
8 |
user_df = user_df.fillna(0)
|
9 |
|
10 |
# Create a Surprise Dataset
|
11 |
-
reader = Reader(rating_scale=(
|
12 |
data = Dataset.load_from_df(user_df[['User_ID', 'Laptop_ID', 'Rating']], reader)
|
13 |
|
14 |
from surprise.model_selection import train_test_split
|
|
|
8 |
user_df = user_df.fillna(0)
|
9 |
|
10 |
# Create a Surprise Dataset
|
11 |
+
reader = Reader(rating_scale=(0, 5))
|
12 |
data = Dataset.load_from_df(user_df[['User_ID', 'Laptop_ID', 'Rating']], reader)
|
13 |
|
14 |
from surprise.model_selection import train_test_split
|