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 1188
Browse files
README.md
CHANGED
|
@@ -88,31 +88,31 @@ model-index:
|
|
| 88 |
type: chess-ir
|
| 89 |
metrics:
|
| 90 |
- type: cosine_accuracy@1
|
| 91 |
-
value: 0.
|
| 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.
|
| 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.
|
| 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.
|
| 254 |
-
| cosine_accuracy@10 | 0.
|
| 255 |
-
| cosine_precision@1 | 0.
|
| 256 |
-
| cosine_precision@10 | 0.
|
| 257 |
-
| cosine_recall@1 | 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
|
|
@@ -449,12 +449,18 @@ You can finetune this model on your own dataset.
|
|
| 449 |
| 1.6162 | 640 | 3.9819 | - | - |
|
| 450 |
| 1.8182 | 720 | 3.4584 | - | - |
|
| 451 |
| 2.0 | 792 | - | 0.0505 | 0.0938 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 452 |
|
| 453 |
|
| 454 |
### Training Time
|
| 455 |
-
- **Training**:
|
| 456 |
-
- **Evaluation**: 0.
|
| 457 |
-
- **Total**:
|
| 458 |
|
| 459 |
### Framework Versions
|
| 460 |
- Python: 3.12.10
|
|
|
|
| 88 |
type: chess-ir
|
| 89 |
metrics:
|
| 90 |
- type: cosine_accuracy@1
|
| 91 |
+
value: 0.005
|
| 92 |
name: Cosine Accuracy@1
|
| 93 |
- type: cosine_accuracy@10
|
| 94 |
+
value: 0.12
|
| 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.013500000000000002
|
| 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.045
|
| 107 |
name: Cosine Recall@10
|
| 108 |
- type: cosine_ndcg@10
|
| 109 |
+
value: 0.025055316706879063
|
| 110 |
name: Cosine Ndcg@10
|
| 111 |
- type: cosine_mrr@10
|
| 112 |
+
value: 0.027448412698412694
|
| 113 |
name: Cosine Mrr@10
|
| 114 |
- type: cosine_map@100
|
| 115 |
+
value: 0.01920011746106999
|
| 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.07407407407407407
|
| 126 |
name: Cosine Accuracy@1
|
| 127 |
- type: cosine_accuracy@10
|
| 128 |
+
value: 0.2751322751322751
|
| 129 |
name: Cosine Accuracy@10
|
| 130 |
- type: cosine_precision@1
|
| 131 |
+
value: 0.07407407407407407
|
| 132 |
name: Cosine Precision@1
|
| 133 |
- type: cosine_precision@10
|
| 134 |
+
value: 0.07301587301587303
|
| 135 |
name: Cosine Precision@10
|
| 136 |
- type: cosine_recall@1
|
| 137 |
+
value: 0.007335022553504582
|
| 138 |
name: Cosine Recall@1
|
| 139 |
- type: cosine_recall@10
|
| 140 |
+
value: 0.03736997784436353
|
| 141 |
name: Cosine Recall@10
|
| 142 |
- type: cosine_ndcg@10
|
| 143 |
+
value: 0.08304277519172808
|
| 144 |
name: Cosine Ndcg@10
|
| 145 |
- type: cosine_mrr@10
|
| 146 |
+
value: 0.12320483749055179
|
| 147 |
name: Cosine Mrr@10
|
| 148 |
- type: cosine_map@100
|
| 149 |
+
value: 0.048955611576045346
|
| 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.8485, 0.5020, 0.2100]])
|
| 217 |
```
|
| 218 |
<!--
|
| 219 |
### Direct Usage (Transformers)
|
|
|
|
| 250 |
|
| 251 |
| Metric | chess-ir | chess-ir-tokens |
|
| 252 |
|:--------------------|:-----------|:----------------|
|
| 253 |
+
| cosine_accuracy@1 | 0.005 | 0.0741 |
|
| 254 |
+
| cosine_accuracy@10 | 0.12 | 0.2751 |
|
| 255 |
+
| cosine_precision@1 | 0.005 | 0.0741 |
|
| 256 |
+
| cosine_precision@10 | 0.0135 | 0.073 |
|
| 257 |
+
| cosine_recall@1 | 0.0017 | 0.0073 |
|
| 258 |
+
| cosine_recall@10 | 0.045 | 0.0374 |
|
| 259 |
+
| **cosine_ndcg@10** | **0.0251** | **0.083** |
|
| 260 |
+
| cosine_mrr@10 | 0.0274 | 0.1232 |
|
| 261 |
+
| cosine_map@100 | 0.0192 | 0.049 |
|
| 262 |
|
| 263 |
<!--
|
| 264 |
## Bias, Risks and Limitations
|
|
|
|
| 449 |
| 1.6162 | 640 | 3.9819 | - | - |
|
| 450 |
| 1.8182 | 720 | 3.4584 | - | - |
|
| 451 |
| 2.0 | 792 | - | 0.0505 | 0.0938 |
|
| 452 |
+
| 2.0202 | 800 | 3.1303 | - | - |
|
| 453 |
+
| 2.2222 | 880 | 2.9652 | - | - |
|
| 454 |
+
| 2.4242 | 960 | 2.8584 | - | - |
|
| 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**: 3.1 minutes
|
| 462 |
+
- **Evaluation**: 0.2 seconds
|
| 463 |
+
- **Total**: 3.1 minutes
|
| 464 |
|
| 465 |
### Framework Versions
|
| 466 |
- Python: 3.12.10
|
eval/Information-Retrieval_evaluation_chess-ir-tokens_results.csv
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
epoch,steps,cosine-Accuracy@1,cosine-Accuracy@10,cosine-Precision@1,cosine-Recall@1,cosine-Precision@10,cosine-Recall@10,cosine-MRR@10,cosine-NDCG@10,cosine-MAP@100
|
| 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
|
|
|
|
|
|
| 1 |
epoch,steps,cosine-Accuracy@1,cosine-Accuracy@10,cosine-Precision@1,cosine-Recall@1,cosine-Precision@10,cosine-Recall@10,cosine-MRR@10,cosine-NDCG@10,cosine-MAP@100
|
| 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
|
eval/Information-Retrieval_evaluation_chess-ir_results.csv
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
epoch,steps,cosine-Accuracy@1,cosine-Accuracy@10,cosine-Precision@1,cosine-Recall@1,cosine-Precision@10,cosine-Recall@10,cosine-MRR@10,cosine-NDCG@10,cosine-MAP@100
|
| 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
|
|
|
|
|
|
| 1 |
epoch,steps,cosine-Accuracy@1,cosine-Accuracy@10,cosine-Precision@1,cosine-Recall@1,cosine-Precision@10,cosine-Recall@10,cosine-MRR@10,cosine-NDCG@10,cosine-MAP@100
|
| 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
|
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:c672528037a4c5bc695142e31736c561db8222fd68bb52444b2866e0f5babfd6
|
| 3 |
size 8880224
|