Upload 6 files
Browse files- README.md +51 -3
- gitattributes +30 -0
- history.json +16 -0
- keras_metadata.pb +3 -0
- model.png +0 -0
- saved_model.pb +3 -0
README.md
CHANGED
@@ -1,3 +1,51 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: tf-keras
|
3 |
+
license:
|
4 |
+
- cc0-1.0
|
5 |
+
tags:
|
6 |
+
- collaborative-filtering
|
7 |
+
- recommender
|
8 |
+
- tabular-classification
|
9 |
+
---
|
10 |
+
|
11 |
+
## Model description
|
12 |
+
|
13 |
+
This repo contains the model and the notebook on [how to build and train a Keras model for Collaborative Filtering for Movie Recommendations](https://keras.io/examples/structured_data/collaborative_filtering_movielens/).
|
14 |
+
|
15 |
+
Full credits to [Siddhartha Banerjee](https://twitter.com/sidd2006).
|
16 |
+
|
17 |
+
## Intended uses & limitations
|
18 |
+
|
19 |
+
Based on a user and movies they have rated highly in the past, this model outputs the predicted rating a user would give to a movie they haven't seen yet (between 0-1). This information can be used to find out the top recommended movies for this user.
|
20 |
+
|
21 |
+
## Training and evaluation data
|
22 |
+
|
23 |
+
The dataset consists of user's ratings on specific movies. It also consists of the movie's specific genres.
|
24 |
+
|
25 |
+
## Training procedure
|
26 |
+
|
27 |
+
The model was trained for 5 epochs with a batch size of 64.
|
28 |
+
|
29 |
+
### Training hyperparameters
|
30 |
+
|
31 |
+
The following hyperparameters were used during training:
|
32 |
+
- optimizer: {'name': 'Adam', 'learning_rate': 0.001, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
|
33 |
+
- training_precision: float32
|
34 |
+
|
35 |
+
## Training Metrics
|
36 |
+
|
37 |
+
| Epochs | Train Loss | Validation Loss |
|
38 |
+
|--- |--- |--- |
|
39 |
+
| 1| 0.637| 0.619|
|
40 |
+
| 2| 0.614| 0.616|
|
41 |
+
| 3| 0.609| 0.611|
|
42 |
+
| 4| 0.608| 0.61|
|
43 |
+
| 5| 0.608| 0.609|
|
44 |
+
## Model Plot
|
45 |
+
|
46 |
+
<details>
|
47 |
+
<summary>View Model Plot</summary>
|
48 |
+
|
49 |
+
![Model Image](./model.png)
|
50 |
+
|
51 |
+
</details>
|
gitattributes
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
19 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
model.png filter=lfs diff=lfs merge=lfs -text
|
29 |
+
variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
|
30 |
+
variables/variables.index filter=lfs diff=lfs merge=lfs -text
|
history.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"loss": [
|
3 |
+
0.6373019218444824,
|
4 |
+
0.6136389374732971,
|
5 |
+
0.6086257696151733,
|
6 |
+
0.6080355644226074,
|
7 |
+
0.6076262593269348
|
8 |
+
],
|
9 |
+
"val_loss": [
|
10 |
+
0.618667721748352,
|
11 |
+
0.6163149476051331,
|
12 |
+
0.6105691194534302,
|
13 |
+
0.6103658080101013,
|
14 |
+
0.6092671751976013
|
15 |
+
]
|
16 |
+
}
|
keras_metadata.pb
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:02876faecfbdb57d02d75adc443eb73dce800bf8aa0d4f787a2a9e1825150cca
|
3 |
+
size 4921
|
model.png
ADDED
saved_model.pb
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a900821259edc62b7a54c23fc83d81244f32a48ff276ce8b68419840568f918f
|
3 |
+
size 121459
|