Sentence Similarity
sentence-transformers
Safetensors
English
static-embedding
chess
retrieval
exploratory
Instructions to use oneryalcin/static-embedding-chess with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use oneryalcin/static-embedding-chess with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("oneryalcin/static-embedding-chess") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Training in progress, step 1584
Browse files
README.md
CHANGED
|
@@ -91,28 +91,28 @@ model-index:
|
|
| 91 |
value: 0.005
|
| 92 |
name: Cosine Accuracy@1
|
| 93 |
- type: cosine_accuracy@10
|
| 94 |
-
value: 0.
|
| 95 |
name: Cosine Accuracy@10
|
| 96 |
- type: cosine_precision@1
|
| 97 |
value: 0.005
|
| 98 |
name: Cosine Precision@1
|
| 99 |
- type: cosine_precision@10
|
| 100 |
-
value: 0.
|
| 101 |
name: Cosine Precision@10
|
| 102 |
- type: cosine_recall@1
|
| 103 |
value: 0.0016666666666666666
|
| 104 |
name: Cosine Recall@1
|
| 105 |
- type: cosine_recall@10
|
| 106 |
-
value: 0.
|
| 107 |
name: Cosine Recall@10
|
| 108 |
- type: cosine_ndcg@10
|
| 109 |
-
value: 0.
|
| 110 |
name: Cosine Ndcg@10
|
| 111 |
- type: cosine_mrr@10
|
| 112 |
-
value: 0.
|
| 113 |
name: Cosine Mrr@10
|
| 114 |
- type: cosine_map@100
|
| 115 |
-
value: 0.
|
| 116 |
name: Cosine Map@100
|
| 117 |
- task:
|
| 118 |
type: information-retrieval
|
|
@@ -122,31 +122,31 @@ model-index:
|
|
| 122 |
type: chess-ir-tokens
|
| 123 |
metrics:
|
| 124 |
- type: cosine_accuracy@1
|
| 125 |
-
value: 0.
|
| 126 |
name: Cosine Accuracy@1
|
| 127 |
- type: cosine_accuracy@10
|
| 128 |
-
value: 0.
|
| 129 |
name: Cosine Accuracy@10
|
| 130 |
- type: cosine_precision@1
|
| 131 |
-
value: 0.
|
| 132 |
name: Cosine Precision@1
|
| 133 |
- type: cosine_precision@10
|
| 134 |
-
value: 0.
|
| 135 |
name: Cosine Precision@10
|
| 136 |
- type: cosine_recall@1
|
| 137 |
-
value: 0.
|
| 138 |
name: Cosine Recall@1
|
| 139 |
- type: cosine_recall@10
|
| 140 |
-
value: 0.
|
| 141 |
name: Cosine Recall@10
|
| 142 |
- type: cosine_ndcg@10
|
| 143 |
-
value: 0.
|
| 144 |
name: Cosine Ndcg@10
|
| 145 |
- type: cosine_mrr@10
|
| 146 |
-
value: 0.
|
| 147 |
name: Cosine Mrr@10
|
| 148 |
- type: cosine_map@100
|
| 149 |
-
value: 0.
|
| 150 |
name: Cosine Map@100
|
| 151 |
---
|
| 152 |
|
|
@@ -213,7 +213,7 @@ print(query_embeddings.shape, document_embeddings.shape)
|
|
| 213 |
# Get the similarity scores for the embeddings
|
| 214 |
similarities = model.similarity(query_embeddings, document_embeddings)
|
| 215 |
print(similarities)
|
| 216 |
-
# tensor([[0.
|
| 217 |
```
|
| 218 |
<!--
|
| 219 |
### Direct Usage (Transformers)
|
|
@@ -250,15 +250,15 @@ You can finetune this model on your own dataset.
|
|
| 250 |
|
| 251 |
| Metric | chess-ir | chess-ir-tokens |
|
| 252 |
|:--------------------|:-----------|:----------------|
|
| 253 |
-
| cosine_accuracy@1 | 0.005 | 0.
|
| 254 |
-
| cosine_accuracy@10 | 0.
|
| 255 |
-
| cosine_precision@1 | 0.005 | 0.
|
| 256 |
-
| cosine_precision@10 | 0.
|
| 257 |
-
| cosine_recall@1 | 0.0017 | 0.
|
| 258 |
-
| cosine_recall@10 | 0.
|
| 259 |
-
| **cosine_ndcg@10** | **0.
|
| 260 |
-
| cosine_mrr@10 | 0.
|
| 261 |
-
| cosine_map@100 | 0.
|
| 262 |
|
| 263 |
<!--
|
| 264 |
## Bias, Risks and Limitations
|
|
@@ -455,12 +455,18 @@ You can finetune this model on your own dataset.
|
|
| 455 |
| 2.6263 | 1040 | 2.7907 | - | - |
|
| 456 |
| 2.8283 | 1120 | 2.7475 | - | - |
|
| 457 |
| 3.0 | 1188 | - | 0.0251 | 0.0830 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 458 |
|
| 459 |
|
| 460 |
### Training Time
|
| 461 |
-
- **Training**:
|
| 462 |
- **Evaluation**: 0.2 seconds
|
| 463 |
-
- **Total**:
|
| 464 |
|
| 465 |
### Framework Versions
|
| 466 |
- Python: 3.12.10
|
|
|
|
| 91 |
value: 0.005
|
| 92 |
name: Cosine Accuracy@1
|
| 93 |
- type: cosine_accuracy@10
|
| 94 |
+
value: 0.07
|
| 95 |
name: Cosine Accuracy@10
|
| 96 |
- type: cosine_precision@1
|
| 97 |
value: 0.005
|
| 98 |
name: Cosine Precision@1
|
| 99 |
- type: cosine_precision@10
|
| 100 |
+
value: 0.008
|
| 101 |
name: Cosine Precision@10
|
| 102 |
- type: cosine_recall@1
|
| 103 |
value: 0.0016666666666666666
|
| 104 |
name: Cosine Recall@1
|
| 105 |
- type: cosine_recall@10
|
| 106 |
+
value: 0.02666666666666666
|
| 107 |
name: Cosine Recall@10
|
| 108 |
- type: cosine_ndcg@10
|
| 109 |
+
value: 0.01682968253099316
|
| 110 |
name: Cosine Ndcg@10
|
| 111 |
- type: cosine_mrr@10
|
| 112 |
+
value: 0.020728174603174603
|
| 113 |
name: Cosine Mrr@10
|
| 114 |
- type: cosine_map@100
|
| 115 |
+
value: 0.014144217882495914
|
| 116 |
name: Cosine Map@100
|
| 117 |
- task:
|
| 118 |
type: information-retrieval
|
|
|
|
| 122 |
type: chess-ir-tokens
|
| 123 |
metrics:
|
| 124 |
- type: cosine_accuracy@1
|
| 125 |
+
value: 0.07936507936507936
|
| 126 |
name: Cosine Accuracy@1
|
| 127 |
- type: cosine_accuracy@10
|
| 128 |
+
value: 0.25925925925925924
|
| 129 |
name: Cosine Accuracy@10
|
| 130 |
- type: cosine_precision@1
|
| 131 |
+
value: 0.07936507936507936
|
| 132 |
name: Cosine Precision@1
|
| 133 |
- type: cosine_precision@10
|
| 134 |
+
value: 0.06031746031746032
|
| 135 |
name: Cosine Precision@10
|
| 136 |
- type: cosine_recall@1
|
| 137 |
+
value: 0.00224439005944158
|
| 138 |
name: Cosine Recall@1
|
| 139 |
- type: cosine_recall@10
|
| 140 |
+
value: 0.023957890091684336
|
| 141 |
name: Cosine Recall@10
|
| 142 |
- type: cosine_ndcg@10
|
| 143 |
+
value: 0.067202690066618
|
| 144 |
name: Cosine Ndcg@10
|
| 145 |
- type: cosine_mrr@10
|
| 146 |
+
value: 0.12332031578063325
|
| 147 |
name: Cosine Mrr@10
|
| 148 |
- type: cosine_map@100
|
| 149 |
+
value: 0.03321093573791526
|
| 150 |
name: Cosine Map@100
|
| 151 |
---
|
| 152 |
|
|
|
|
| 213 |
# Get the similarity scores for the embeddings
|
| 214 |
similarities = model.similarity(query_embeddings, document_embeddings)
|
| 215 |
print(similarities)
|
| 216 |
+
# tensor([[0.8405, 0.5061, 0.2136]])
|
| 217 |
```
|
| 218 |
<!--
|
| 219 |
### Direct Usage (Transformers)
|
|
|
|
| 250 |
|
| 251 |
| Metric | chess-ir | chess-ir-tokens |
|
| 252 |
|:--------------------|:-----------|:----------------|
|
| 253 |
+
| cosine_accuracy@1 | 0.005 | 0.0794 |
|
| 254 |
+
| cosine_accuracy@10 | 0.07 | 0.2593 |
|
| 255 |
+
| cosine_precision@1 | 0.005 | 0.0794 |
|
| 256 |
+
| cosine_precision@10 | 0.008 | 0.0603 |
|
| 257 |
+
| cosine_recall@1 | 0.0017 | 0.0022 |
|
| 258 |
+
| cosine_recall@10 | 0.0267 | 0.024 |
|
| 259 |
+
| **cosine_ndcg@10** | **0.0168** | **0.0672** |
|
| 260 |
+
| cosine_mrr@10 | 0.0207 | 0.1233 |
|
| 261 |
+
| cosine_map@100 | 0.0141 | 0.0332 |
|
| 262 |
|
| 263 |
<!--
|
| 264 |
## Bias, Risks and Limitations
|
|
|
|
| 455 |
| 2.6263 | 1040 | 2.7907 | - | - |
|
| 456 |
| 2.8283 | 1120 | 2.7475 | - | - |
|
| 457 |
| 3.0 | 1188 | - | 0.0251 | 0.0830 |
|
| 458 |
+
| 3.0303 | 1200 | 2.7031 | - | - |
|
| 459 |
+
| 3.2323 | 1280 | 2.6927 | - | - |
|
| 460 |
+
| 3.4343 | 1360 | 2.6516 | - | - |
|
| 461 |
+
| 3.6364 | 1440 | 2.6441 | - | - |
|
| 462 |
+
| 3.8384 | 1520 | 2.6202 | - | - |
|
| 463 |
+
| 4.0 | 1584 | - | 0.0168 | 0.0672 |
|
| 464 |
|
| 465 |
|
| 466 |
### Training Time
|
| 467 |
+
- **Training**: 4.1 minutes
|
| 468 |
- **Evaluation**: 0.2 seconds
|
| 469 |
+
- **Total**: 4.1 minutes
|
| 470 |
|
| 471 |
### Framework Versions
|
| 472 |
- Python: 3.12.10
|
eval/Information-Retrieval_evaluation_chess-ir-tokens_results.csv
CHANGED
|
@@ -2,3 +2,4 @@ epoch,steps,cosine-Accuracy@1,cosine-Accuracy@10,cosine-Precision@1,cosine-Recal
|
|
| 2 |
1.0,396,0.12698412698412698,0.3544973544973545,0.12698412698412698,0.0066613186633905,0.10476190476190476,0.0462228099305809,0.18598303518938442,0.11807198905104373,0.06497812950052975
|
| 3 |
2.0,792,0.10582010582010581,0.2857142857142857,0.10582010582010581,0.009819076674514655,0.07671957671957672,0.04177603773249901,0.15736751490719747,0.0938286742384803,0.06197118360268986
|
| 4 |
3.0,1188,0.07407407407407407,0.2751322751322751,0.07407407407407407,0.007335022553504582,0.07301587301587303,0.03736997784436353,0.12320483749055179,0.08304277519172808,0.048955611576045346
|
|
|
|
|
|
| 2 |
1.0,396,0.12698412698412698,0.3544973544973545,0.12698412698412698,0.0066613186633905,0.10476190476190476,0.0462228099305809,0.18598303518938442,0.11807198905104373,0.06497812950052975
|
| 3 |
2.0,792,0.10582010582010581,0.2857142857142857,0.10582010582010581,0.009819076674514655,0.07671957671957672,0.04177603773249901,0.15736751490719747,0.0938286742384803,0.06197118360268986
|
| 4 |
3.0,1188,0.07407407407407407,0.2751322751322751,0.07407407407407407,0.007335022553504582,0.07301587301587303,0.03736997784436353,0.12320483749055179,0.08304277519172808,0.048955611576045346
|
| 5 |
+
4.0,1584,0.07936507936507936,0.25925925925925924,0.07936507936507936,0.00224439005944158,0.06031746031746032,0.023957890091684336,0.12332031578063325,0.067202690066618,0.03321093573791526
|
eval/Information-Retrieval_evaluation_chess-ir_results.csv
CHANGED
|
@@ -2,3 +2,4 @@ epoch,steps,cosine-Accuracy@1,cosine-Accuracy@10,cosine-Precision@1,cosine-Recal
|
|
| 2 |
1.0,396,0.06,0.255,0.06,0.02,0.032,0.10666666666666665,0.11224206349206348,0.07998649265394674,0.06593273410392075
|
| 3 |
2.0,792,0.035,0.17,0.035,0.011666666666666665,0.020999999999999998,0.07,0.06641468253968254,0.05046230511277317,0.04510173764984732
|
| 4 |
3.0,1188,0.005,0.12,0.005,0.0016666666666666666,0.013500000000000002,0.045,0.027448412698412694,0.025055316706879063,0.01920011746106999
|
|
|
|
|
|
| 2 |
1.0,396,0.06,0.255,0.06,0.02,0.032,0.10666666666666665,0.11224206349206348,0.07998649265394674,0.06593273410392075
|
| 3 |
2.0,792,0.035,0.17,0.035,0.011666666666666665,0.020999999999999998,0.07,0.06641468253968254,0.05046230511277317,0.04510173764984732
|
| 4 |
3.0,1188,0.005,0.12,0.005,0.0016666666666666666,0.013500000000000002,0.045,0.027448412698412694,0.025055316706879063,0.01920011746106999
|
| 5 |
+
4.0,1584,0.005,0.07,0.005,0.0016666666666666666,0.008,0.02666666666666666,0.020728174603174603,0.01682968253099316,0.014144217882495914
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 8880224
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85ba258107839fe02a04763d71797aeb5f4fa19f2a8712e73a0ed0e38b4c15ff
|
| 3 |
size 8880224
|