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 570
Browse files
README.md
CHANGED
|
@@ -74,31 +74,31 @@ model-index:
|
|
| 74 |
type: chess-ir
|
| 75 |
metrics:
|
| 76 |
- type: cosine_accuracy@1
|
| 77 |
-
value: 0.
|
| 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.
|
| 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.
|
| 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.
|
| 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.
|
| 240 |
-
| cosine_accuracy@10 | 0.
|
| 241 |
-
| cosine_precision@1 | 0.
|
| 242 |
-
| cosine_precision@10 | 0.
|
| 243 |
-
| cosine_recall@1 | 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
|
|
@@ -434,12 +434,23 @@ You can finetune this model on your own dataset.
|
|
| 434 |
| 0.0815 | 232 | 7.3665 | - | - |
|
| 435 |
| 0.0916 | 261 | 7.0534 | - | - |
|
| 436 |
| 0.1001 | 285 | - | 0.0403 | 0.0964 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 437 |
|
| 438 |
|
| 439 |
### Training Time
|
| 440 |
-
- **Training**:
|
| 441 |
- **Evaluation**: 0.1 seconds
|
| 442 |
-
- **Total**:
|
| 443 |
|
| 444 |
### Framework Versions
|
| 445 |
- Python: 3.12.10
|
|
|
|
| 74 |
type: chess-ir
|
| 75 |
metrics:
|
| 76 |
- type: cosine_accuracy@1
|
| 77 |
+
value: 0.01
|
| 78 |
name: Cosine Accuracy@1
|
| 79 |
- type: cosine_accuracy@10
|
| 80 |
+
value: 0.06
|
| 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.006999999999999999
|
| 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.02333333333333333
|
| 93 |
name: Cosine Recall@10
|
| 94 |
- type: cosine_ndcg@10
|
| 95 |
+
value: 0.0165414546823231
|
| 96 |
name: Cosine Ndcg@10
|
| 97 |
- type: cosine_mrr@10
|
| 98 |
+
value: 0.021797619047619052
|
| 99 |
name: Cosine Mrr@10
|
| 100 |
- type: cosine_map@100
|
| 101 |
+
value: 0.01826039464782554
|
| 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.05291005291005291
|
| 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.05291005291005291
|
| 118 |
name: Cosine Precision@1
|
| 119 |
- type: cosine_precision@10
|
| 120 |
+
value: 0.056613756613756616
|
| 121 |
name: Cosine Precision@10
|
| 122 |
- type: cosine_recall@1
|
| 123 |
+
value: 0.0032049522325313766
|
| 124 |
name: Cosine Recall@1
|
| 125 |
- type: cosine_recall@10
|
| 126 |
+
value: 0.023108435943979263
|
| 127 |
name: Cosine Recall@10
|
| 128 |
- type: cosine_ndcg@10
|
| 129 |
+
value: 0.062386658509055025
|
| 130 |
name: Cosine Ndcg@10
|
| 131 |
- type: cosine_mrr@10
|
| 132 |
+
value: 0.09312379272696733
|
| 133 |
name: Cosine Mrr@10
|
| 134 |
- type: cosine_map@100
|
| 135 |
+
value: 0.0369514194632888
|
| 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.9564, -0.1107, 0.0607]])
|
| 203 |
```
|
| 204 |
<!--
|
| 205 |
### Direct Usage (Transformers)
|
|
|
|
| 236 |
|
| 237 |
| Metric | chess-ir | chess-ir-tokens |
|
| 238 |
|:--------------------|:-----------|:----------------|
|
| 239 |
+
| cosine_accuracy@1 | 0.01 | 0.0529 |
|
| 240 |
+
| cosine_accuracy@10 | 0.06 | 0.2116 |
|
| 241 |
+
| cosine_precision@1 | 0.01 | 0.0529 |
|
| 242 |
+
| cosine_precision@10 | 0.007 | 0.0566 |
|
| 243 |
+
| cosine_recall@1 | 0.0033 | 0.0032 |
|
| 244 |
+
| cosine_recall@10 | 0.0233 | 0.0231 |
|
| 245 |
+
| **cosine_ndcg@10** | **0.0165** | **0.0624** |
|
| 246 |
+
| cosine_mrr@10 | 0.0218 | 0.0931 |
|
| 247 |
+
| cosine_map@100 | 0.0183 | 0.037 |
|
| 248 |
|
| 249 |
<!--
|
| 250 |
## Bias, Risks and Limitations
|
|
|
|
| 434 |
| 0.0815 | 232 | 7.3665 | - | - |
|
| 435 |
| 0.0916 | 261 | 7.0534 | - | - |
|
| 436 |
| 0.1001 | 285 | - | 0.0403 | 0.0964 |
|
| 437 |
+
| 0.1018 | 290 | 6.8225 | - | - |
|
| 438 |
+
| 0.1120 | 319 | 6.6948 | - | - |
|
| 439 |
+
| 0.1222 | 348 | 6.6811 | - | - |
|
| 440 |
+
| 0.1324 | 377 | 6.5559 | - | - |
|
| 441 |
+
| 0.1426 | 406 | 6.6007 | - | - |
|
| 442 |
+
| 0.1527 | 435 | 6.5704 | - | - |
|
| 443 |
+
| 0.1629 | 464 | 6.4524 | - | - |
|
| 444 |
+
| 0.1731 | 493 | 6.4562 | - | - |
|
| 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**: 33.1 seconds
|
| 452 |
- **Evaluation**: 0.1 seconds
|
| 453 |
+
- **Total**: 33.2 seconds
|
| 454 |
|
| 455 |
### Framework Versions
|
| 456 |
- Python: 3.12.10
|
eval/Information-Retrieval_evaluation_chess-ir-tokens_results.csv
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 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
|
|
|
|
|
|
| 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
|
eval/Information-Retrieval_evaluation_chess-ir_results.csv
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 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
|
|
|
|
|
|
| 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
|
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:7dc6e93a2832d52718e604d16e60ed4d6898b4984a79af56244b878f9f9eba05
|
| 3 |
size 8880224
|