Spaces:
Build error
Build error
Vincent Claes
commited on
Commit
·
70e10bc
1
Parent(s):
bd5f1a1
update documentation
Browse files
app.py
CHANGED
@@ -64,14 +64,45 @@ description = """You provide a sentence and our few-shot fine tuned CLIP model w
|
|
64 |
"""
|
65 |
article = """
|
66 |
\n
|
67 |
-
|
68 |
\n
|
69 |
-
|
70 |
-
The current model is fine-tuned on 15 samples per emoji.
|
71 |
|
72 |
- model: https://huggingface.co/vincentclaes/emoji-predictor \n
|
73 |
- dataset: https://huggingface.co/datasets/vincentclaes/emoji-predictor \n
|
74 |
- profile: https://huggingface.co/vincentclaes \n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
"""
|
76 |
examples = [
|
77 |
"I'm so happy for you!",
|
|
|
64 |
"""
|
65 |
article = """
|
66 |
\n
|
67 |
+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
68 |
\n
|
69 |
+
I fine tuned Open Ai's CLIP model on both text (tweets) and images of emoji's!\n
|
70 |
+
The current model you can play with is fine-tuned on 15 samples per emoji.
|
71 |
|
72 |
- model: https://huggingface.co/vincentclaes/emoji-predictor \n
|
73 |
- dataset: https://huggingface.co/datasets/vincentclaes/emoji-predictor \n
|
74 |
- profile: https://huggingface.co/vincentclaes \n
|
75 |
+
|
76 |
+
Below you can find a table with the precision for predictions and suggestions
|
77 |
+
for a range of samples per emoji we fine-tuned CLIP on.
|
78 |
+
|
79 |
+
The column "Prediction" indicates the precision for predicting the right emoji.
|
80 |
+
|
81 |
+
Since there can be some confusion about the right emoji for a tweet,
|
82 |
+
I also tried to present 4 suggestions. If 1 of the 4 suggestions is the same as the label,
|
83 |
+
I consider it a valid prediction. See the column "Suggestion".
|
84 |
+
|
85 |
+
Randomly predicting an emoji would have a precision of 1/32 or 0.0325.
|
86 |
+
Randomly suggesting an emoji would have a precision of 4/32 or 0.12.
|
87 |
+
|
88 |
+
|
89 |
+
| Samples | Prediction | Suggestion |
|
90 |
+
|--------- |------------ |------------ |
|
91 |
+
| 0 | 0.13 | 0.33 |
|
92 |
+
| 1 | 0.11 | 0.30 |
|
93 |
+
| 5 | 0.14 | 0.38 |
|
94 |
+
| 10 | 0.20 | 0.45 |
|
95 |
+
| 15 | 0.22 | 0.51 |
|
96 |
+
| 20 | 0.19 | 0.49 |
|
97 |
+
| 25 | 0.24 | 0.54 |
|
98 |
+
| 50 | 0.23 | 0.53 |
|
99 |
+
| 100 | 0.25 | 0.57 |
|
100 |
+
| 250 | 0.29 | 0.62 |
|
101 |
+
| 500 | 0.29 | 0.63 |
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
"""
|
107 |
examples = [
|
108 |
"I'm so happy for you!",
|