Spaces:
Runtime error
Runtime error
seyia92coding
commited on
Commit
•
e52ecf3
1
Parent(s):
3fbcf3c
Update app.py
Browse files
app.py
CHANGED
@@ -7,14 +7,10 @@ Original file is located at
|
|
7 |
https://colab.research.google.com/drive/1sZ9FI7bnnNBcvFa2rt78EKYeU2L4XrXi
|
8 |
"""
|
9 |
|
10 |
-
!pip install surprise
|
11 |
-
|
12 |
from surprise import NMF, SVD, SVDpp, KNNBasic, KNNWithMeans, KNNWithZScore, CoClustering
|
13 |
from surprise.model_selection import cross_validate
|
14 |
from surprise import Reader, Dataset
|
15 |
|
16 |
-
!pip install gradio
|
17 |
-
|
18 |
import gradio as gr
|
19 |
|
20 |
import pandas as pd
|
@@ -53,8 +49,6 @@ top_recent_scorers = over_2015.groupby('game')['score'].mean().sort_values(ascen
|
|
53 |
top_40_games = top_recent_scorers.index[:40]
|
54 |
#top_100_games = top_recent_scorers.index[:100]
|
55 |
|
56 |
-
df.shape
|
57 |
-
|
58 |
combined_games_data = df[['game','name','score']]
|
59 |
algorithms = [NMF(), SVD(), SVDpp(), KNNWithZScore(), CoClustering()]
|
60 |
|
|
|
7 |
https://colab.research.google.com/drive/1sZ9FI7bnnNBcvFa2rt78EKYeU2L4XrXi
|
8 |
"""
|
9 |
|
|
|
|
|
10 |
from surprise import NMF, SVD, SVDpp, KNNBasic, KNNWithMeans, KNNWithZScore, CoClustering
|
11 |
from surprise.model_selection import cross_validate
|
12 |
from surprise import Reader, Dataset
|
13 |
|
|
|
|
|
14 |
import gradio as gr
|
15 |
|
16 |
import pandas as pd
|
|
|
49 |
top_40_games = top_recent_scorers.index[:40]
|
50 |
#top_100_games = top_recent_scorers.index[:100]
|
51 |
|
|
|
|
|
52 |
combined_games_data = df[['game','name','score']]
|
53 |
algorithms = [NMF(), SVD(), SVDpp(), KNNWithZScore(), CoClustering()]
|
54 |
|