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 855
Browse files
README.md
CHANGED
|
@@ -77,28 +77,28 @@ model-index:
|
|
| 77 |
value: 0.01
|
| 78 |
name: Cosine Accuracy@1
|
| 79 |
- type: cosine_accuracy@10
|
| 80 |
-
value: 0.
|
| 81 |
name: Cosine Accuracy@10
|
| 82 |
- type: cosine_precision@1
|
| 83 |
value: 0.01
|
| 84 |
name: Cosine Precision@1
|
| 85 |
- type: cosine_precision@10
|
| 86 |
-
value: 0.
|
| 87 |
name: Cosine Precision@10
|
| 88 |
- type: cosine_recall@1
|
| 89 |
value: 0.003333333333333333
|
| 90 |
name: Cosine Recall@1
|
| 91 |
- type: cosine_recall@10
|
| 92 |
-
value: 0.
|
| 93 |
name: Cosine Recall@10
|
| 94 |
- type: cosine_ndcg@10
|
| 95 |
-
value: 0.
|
| 96 |
name: Cosine Ndcg@10
|
| 97 |
- type: cosine_mrr@10
|
| 98 |
-
value: 0.
|
| 99 |
name: Cosine Mrr@10
|
| 100 |
- type: cosine_map@100
|
| 101 |
-
value: 0.
|
| 102 |
name: Cosine Map@100
|
| 103 |
- task:
|
| 104 |
type: information-retrieval
|
|
@@ -108,31 +108,31 @@ model-index:
|
|
| 108 |
type: chess-ir-tokens
|
| 109 |
metrics:
|
| 110 |
- type: cosine_accuracy@1
|
| 111 |
-
value: 0.
|
| 112 |
name: Cosine Accuracy@1
|
| 113 |
- type: cosine_accuracy@10
|
| 114 |
value: 0.21164021164021163
|
| 115 |
name: Cosine Accuracy@10
|
| 116 |
- type: cosine_precision@1
|
| 117 |
-
value: 0.
|
| 118 |
name: Cosine Precision@1
|
| 119 |
- type: cosine_precision@10
|
| 120 |
-
value: 0.
|
| 121 |
name: Cosine Precision@10
|
| 122 |
- type: cosine_recall@1
|
| 123 |
-
value: 0.
|
| 124 |
name: Cosine Recall@1
|
| 125 |
- type: cosine_recall@10
|
| 126 |
-
value: 0.
|
| 127 |
name: Cosine Recall@10
|
| 128 |
- type: cosine_ndcg@10
|
| 129 |
-
value: 0.
|
| 130 |
name: Cosine Ndcg@10
|
| 131 |
- type: cosine_mrr@10
|
| 132 |
-
value: 0.
|
| 133 |
name: Cosine Mrr@10
|
| 134 |
- type: cosine_map@100
|
| 135 |
-
value: 0.
|
| 136 |
name: Cosine Map@100
|
| 137 |
---
|
| 138 |
|
|
@@ -199,7 +199,7 @@ print(query_embeddings.shape, document_embeddings.shape)
|
|
| 199 |
# Get the similarity scores for the embeddings
|
| 200 |
similarities = model.similarity(query_embeddings, document_embeddings)
|
| 201 |
print(similarities)
|
| 202 |
-
# tensor([[ 0.
|
| 203 |
```
|
| 204 |
<!--
|
| 205 |
### Direct Usage (Transformers)
|
|
@@ -236,15 +236,15 @@ You can finetune this model on your own dataset.
|
|
| 236 |
|
| 237 |
| Metric | chess-ir | chess-ir-tokens |
|
| 238 |
|:--------------------|:-----------|:----------------|
|
| 239 |
-
| cosine_accuracy@1 | 0.01 | 0.
|
| 240 |
-
| cosine_accuracy@10 | 0.
|
| 241 |
-
| cosine_precision@1 | 0.01 | 0.
|
| 242 |
-
| cosine_precision@10 | 0.
|
| 243 |
-
| cosine_recall@1 | 0.0033 | 0.
|
| 244 |
-
| cosine_recall@10 | 0.
|
| 245 |
-
| **cosine_ndcg@10** | **0.
|
| 246 |
-
| cosine_mrr@10 | 0.
|
| 247 |
-
| cosine_map@100 | 0.
|
| 248 |
|
| 249 |
<!--
|
| 250 |
## Bias, Risks and Limitations
|
|
@@ -445,12 +445,23 @@ You can finetune this model on your own dataset.
|
|
| 445 |
| 0.1833 | 522 | 6.5016 | - | - |
|
| 446 |
| 0.1935 | 551 | 6.4405 | - | - |
|
| 447 |
| 0.2001 | 570 | - | 0.0165 | 0.0624 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 448 |
|
| 449 |
|
| 450 |
### Training Time
|
| 451 |
-
- **Training**:
|
| 452 |
- **Evaluation**: 0.1 seconds
|
| 453 |
-
- **Total**:
|
| 454 |
|
| 455 |
### Framework Versions
|
| 456 |
- Python: 3.12.10
|
|
|
|
| 77 |
value: 0.01
|
| 78 |
name: Cosine Accuracy@1
|
| 79 |
- type: cosine_accuracy@10
|
| 80 |
+
value: 0.055
|
| 81 |
name: Cosine Accuracy@10
|
| 82 |
- type: cosine_precision@1
|
| 83 |
value: 0.01
|
| 84 |
name: Cosine Precision@1
|
| 85 |
- type: cosine_precision@10
|
| 86 |
+
value: 0.006
|
| 87 |
name: Cosine Precision@10
|
| 88 |
- type: cosine_recall@1
|
| 89 |
value: 0.003333333333333333
|
| 90 |
name: Cosine Recall@1
|
| 91 |
- type: cosine_recall@10
|
| 92 |
+
value: 0.019999999999999997
|
| 93 |
name: Cosine Recall@10
|
| 94 |
- type: cosine_ndcg@10
|
| 95 |
+
value: 0.014141653573050736
|
| 96 |
name: Cosine Ndcg@10
|
| 97 |
- type: cosine_mrr@10
|
| 98 |
+
value: 0.02086111111111111
|
| 99 |
name: Cosine Mrr@10
|
| 100 |
- type: cosine_map@100
|
| 101 |
+
value: 0.012561680163147302
|
| 102 |
name: Cosine Map@100
|
| 103 |
- task:
|
| 104 |
type: information-retrieval
|
|
|
|
| 108 |
type: chess-ir-tokens
|
| 109 |
metrics:
|
| 110 |
- type: cosine_accuracy@1
|
| 111 |
+
value: 0.037037037037037035
|
| 112 |
name: Cosine Accuracy@1
|
| 113 |
- type: cosine_accuracy@10
|
| 114 |
value: 0.21164021164021163
|
| 115 |
name: Cosine Accuracy@10
|
| 116 |
- type: cosine_precision@1
|
| 117 |
+
value: 0.037037037037037035
|
| 118 |
name: Cosine Precision@1
|
| 119 |
- type: cosine_precision@10
|
| 120 |
+
value: 0.047619047619047616
|
| 121 |
name: Cosine Precision@10
|
| 122 |
- type: cosine_recall@1
|
| 123 |
+
value: 0.0025144161912381744
|
| 124 |
name: Cosine Recall@1
|
| 125 |
- type: cosine_recall@10
|
| 126 |
+
value: 0.02212990521949281
|
| 127 |
name: Cosine Recall@10
|
| 128 |
- type: cosine_ndcg@10
|
| 129 |
+
value: 0.0517090496324674
|
| 130 |
name: Cosine Ndcg@10
|
| 131 |
- type: cosine_mrr@10
|
| 132 |
+
value: 0.08710842361636012
|
| 133 |
name: Cosine Mrr@10
|
| 134 |
- type: cosine_map@100
|
| 135 |
+
value: 0.028156284478181654
|
| 136 |
name: Cosine Map@100
|
| 137 |
---
|
| 138 |
|
|
|
|
| 199 |
# Get the similarity scores for the embeddings
|
| 200 |
similarities = model.similarity(query_embeddings, document_embeddings)
|
| 201 |
print(similarities)
|
| 202 |
+
# tensor([[ 0.9826, -0.1530, 0.0366]])
|
| 203 |
```
|
| 204 |
<!--
|
| 205 |
### Direct Usage (Transformers)
|
|
|
|
| 236 |
|
| 237 |
| Metric | chess-ir | chess-ir-tokens |
|
| 238 |
|:--------------------|:-----------|:----------------|
|
| 239 |
+
| cosine_accuracy@1 | 0.01 | 0.037 |
|
| 240 |
+
| cosine_accuracy@10 | 0.055 | 0.2116 |
|
| 241 |
+
| cosine_precision@1 | 0.01 | 0.037 |
|
| 242 |
+
| cosine_precision@10 | 0.006 | 0.0476 |
|
| 243 |
+
| cosine_recall@1 | 0.0033 | 0.0025 |
|
| 244 |
+
| cosine_recall@10 | 0.02 | 0.0221 |
|
| 245 |
+
| **cosine_ndcg@10** | **0.0141** | **0.0517** |
|
| 246 |
+
| cosine_mrr@10 | 0.0209 | 0.0871 |
|
| 247 |
+
| cosine_map@100 | 0.0126 | 0.0282 |
|
| 248 |
|
| 249 |
<!--
|
| 250 |
## Bias, Risks and Limitations
|
|
|
|
| 445 |
| 0.1833 | 522 | 6.5016 | - | - |
|
| 446 |
| 0.1935 | 551 | 6.4405 | - | - |
|
| 447 |
| 0.2001 | 570 | - | 0.0165 | 0.0624 |
|
| 448 |
+
| 0.2037 | 580 | 6.5354 | - | - |
|
| 449 |
+
| 0.2138 | 609 | 6.4492 | - | - |
|
| 450 |
+
| 0.2240 | 638 | 6.4807 | - | - |
|
| 451 |
+
| 0.2342 | 667 | 6.4568 | - | - |
|
| 452 |
+
| 0.2444 | 696 | 6.4335 | - | - |
|
| 453 |
+
| 0.2546 | 725 | 6.4693 | - | - |
|
| 454 |
+
| 0.2647 | 754 | 6.4870 | - | - |
|
| 455 |
+
| 0.2749 | 783 | 6.4468 | - | - |
|
| 456 |
+
| 0.2851 | 812 | 6.4680 | - | - |
|
| 457 |
+
| 0.2953 | 841 | 6.3538 | - | - |
|
| 458 |
+
| 0.3002 | 855 | - | 0.0141 | 0.0517 |
|
| 459 |
|
| 460 |
|
| 461 |
### Training Time
|
| 462 |
+
- **Training**: 49.8 seconds
|
| 463 |
- **Evaluation**: 0.1 seconds
|
| 464 |
+
- **Total**: 49.9 seconds
|
| 465 |
|
| 466 |
### Framework Versions
|
| 467 |
- 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 |
0.10007022471910113,285,0.1111111111111111,0.30158730158730157,0.1111111111111111,0.008191309640952804,0.0835978835978836,0.03797928598263959,0.16048962794994542,0.0963937043281825,0.05480807151213741
|
| 3 |
0.20014044943820225,570,0.05291005291005291,0.21164021164021163,0.05291005291005291,0.0032049522325313766,0.056613756613756616,0.023108435943979263,0.09312379272696733,0.062386658509055025,0.0369514194632888
|
|
|
|
|
|
| 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 |
0.10007022471910113,285,0.1111111111111111,0.30158730158730157,0.1111111111111111,0.008191309640952804,0.0835978835978836,0.03797928598263959,0.16048962794994542,0.0963937043281825,0.05480807151213741
|
| 3 |
0.20014044943820225,570,0.05291005291005291,0.21164021164021163,0.05291005291005291,0.0032049522325313766,0.056613756613756616,0.023108435943979263,0.09312379272696733,0.062386658509055025,0.0369514194632888
|
| 4 |
+
0.30021067415730335,855,0.037037037037037035,0.21164021164021163,0.037037037037037035,0.0025144161912381744,0.047619047619047616,0.02212990521949281,0.08710842361636012,0.0517090496324674,0.028156284478181654
|
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 |
0.10007022471910113,285,0.02,0.135,0.02,0.006666666666666666,0.0175,0.05833333333333333,0.05090277777777777,0.040260232965004236,0.03468285594907049
|
| 3 |
0.20014044943820225,570,0.01,0.06,0.01,0.003333333333333333,0.006999999999999999,0.02333333333333333,0.021797619047619052,0.0165414546823231,0.01826039464782554
|
|
|
|
|
|
| 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 |
0.10007022471910113,285,0.02,0.135,0.02,0.006666666666666666,0.0175,0.05833333333333333,0.05090277777777777,0.040260232965004236,0.03468285594907049
|
| 3 |
0.20014044943820225,570,0.01,0.06,0.01,0.003333333333333333,0.006999999999999999,0.02333333333333333,0.021797619047619052,0.0165414546823231,0.01826039464782554
|
| 4 |
+
0.30021067415730335,855,0.01,0.055,0.01,0.003333333333333333,0.006,0.019999999999999997,0.02086111111111111,0.014141653573050736,0.012561680163147302
|
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:a585943d76bec5e52fc185f5414dba80093b3693261e4921542d31ea01c10fb8
|
| 3 |
size 8880224
|