Skip to content
Snippets Groups Projects
Commit 7b247ec0 authored by Mohamed Sebabti's avatar Mohamed Sebabti
Browse files

model pickle

parent 4884cf9c
No related branches found
No related tags found
No related merge requests found
......@@ -34,50 +34,9 @@ Data columns (total 27 columns):
dtypes: float64(10), int64(11), object(6)
memory usage: 20.2+ MB
None
📊 RandomForestRegressor - MAE: 8.82, RMSE: 12.04, R²: 0.607
🔥 Importance des variables :
year: 0.5028
instrumentalness: 0.0748
nb_caracteres_sans_espaces: 0.0516
loudness: 0.0402
duree_minute: 0.0397
liveness: 0.0385
acousticness: 0.0375
energy: 0.0343
danceability: 0.0343
valence: 0.0336
⏱️ Temps d'exécution : 284.81 secondes
popularity pred_rf
0 24 NaN
1 38 NaN
2 40 NaN
3 20 NaN
4 47 NaN
5 32 NaN
6 52 NaN
7 21 NaN
8 36 36.570159
9 6 NaN
10 35 NaN
11 9 NaN
12 37 NaN
13 63 NaN
14 21 NaN
15 1 NaN
16 30 NaN
17 48 NaN
18 57 NaN
19 19 NaN
20 34 NaN
21 18 NaN
22 31 NaN
23 58 NaN
24 5 NaN
25 34 NaN
26 15 NaN
27 5 NaN
28 30 NaN
29 35 NaN
Traceback (most recent call last):
File "/home/mohamed.sebabti/Private/bigdata_git/bigdata/mlsup0final.py", line 67, in <module>
df = train_random_forest(df)
File "/home/mohamed.sebabti/Private/bigdata_git/bigdata/mlsup0final.py", line 36, in train_random_forest
pickle.dump(rf, model_file)
NameError: name 'pickle' is not defined
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment