Upload fine-tuned chart reranker model
Browse files- README.md +59 -55
- eval/CrossEncoderCorrelationEvaluator_validation_results.csv +5 -5
- model.safetensors +1 -1
- training_info.txt +1 -1
README.md
CHANGED
|
@@ -4,7 +4,7 @@ tags:
|
|
| 4 |
- cross-encoder
|
| 5 |
- reranker
|
| 6 |
- generated_from_trainer
|
| 7 |
-
- dataset_size:
|
| 8 |
- loss:BinaryCrossEntropyLoss
|
| 9 |
base_model: Alibaba-NLP/gte-multilingual-reranker-base
|
| 10 |
pipeline_tag: text-ranking
|
|
@@ -23,10 +23,10 @@ model-index:
|
|
| 23 |
type: validation
|
| 24 |
metrics:
|
| 25 |
- type: pearson
|
| 26 |
-
value: 0.
|
| 27 |
name: Pearson
|
| 28 |
- type: spearman
|
| 29 |
-
value: 0.
|
| 30 |
name: Spearman
|
| 31 |
---
|
| 32 |
|
|
@@ -70,11 +70,11 @@ from sentence_transformers import CrossEncoder
|
|
| 70 |
model = CrossEncoder("cross_encoder_model_id")
|
| 71 |
# Get scores for pairs of texts
|
| 72 |
pairs = [
|
| 73 |
-
['
|
| 74 |
-
['
|
| 75 |
-
['
|
| 76 |
-
['
|
| 77 |
-
['
|
| 78 |
]
|
| 79 |
scores = model.predict(pairs)
|
| 80 |
print(scores.shape)
|
|
@@ -82,13 +82,13 @@ print(scores.shape)
|
|
| 82 |
|
| 83 |
# Or rank different texts based on similarity to a single text
|
| 84 |
ranks = model.rank(
|
| 85 |
-
'
|
| 86 |
[
|
| 87 |
-
'Title: "
|
| 88 |
-
'Title: "
|
| 89 |
-
'Title: "
|
| 90 |
-
'Title: "
|
| 91 |
-
'Title: "
|
| 92 |
]
|
| 93 |
)
|
| 94 |
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
|
|
@@ -129,8 +129,8 @@ You can finetune this model on your own dataset.
|
|
| 129 |
|
| 130 |
| Metric | Value |
|
| 131 |
|:-------------|:-----------|
|
| 132 |
-
| pearson | 0.
|
| 133 |
-
| **spearman** | **0.
|
| 134 |
|
| 135 |
<!--
|
| 136 |
## Bias, Risks and Limitations
|
|
@@ -150,19 +150,19 @@ You can finetune this model on your own dataset.
|
|
| 150 |
|
| 151 |
#### Unnamed Dataset
|
| 152 |
|
| 153 |
-
* Size: 24,
|
| 154 |
* Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
|
| 155 |
* Approximate statistics based on the first 1000 samples:
|
| 156 |
| | sentence_0 | sentence_1 | label |
|
| 157 |
|:--------|:-----------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 158 |
| type | string | string | float |
|
| 159 |
-
| details | <ul><li>min:
|
| 160 |
* Samples:
|
| 161 |
-
| sentence_0
|
| 162 |
-
|
| 163 |
-
| <code>
|
| 164 |
-
| <code>
|
| 165 |
-
| <code>
|
| 166 |
* Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
|
| 167 |
```json
|
| 168 |
{
|
|
@@ -308,38 +308,42 @@ You can finetune this model on your own dataset.
|
|
| 308 |
### Training Logs
|
| 309 |
| Epoch | Step | Training Loss | validation_spearman |
|
| 310 |
|:------:|:----:|:-------------:|:-------------------:|
|
| 311 |
-
| 0.
|
| 312 |
-
| 0.
|
| 313 |
-
| 0.
|
| 314 |
-
| 0.
|
| 315 |
-
| 0.
|
| 316 |
-
| 0.
|
| 317 |
-
| 0.
|
| 318 |
-
| 1.0 |
|
| 319 |
-
| 1.
|
| 320 |
-
| 1.
|
| 321 |
-
| 1.
|
| 322 |
-
| 1.
|
| 323 |
-
| 1.
|
| 324 |
-
| 1.
|
| 325 |
-
| 1.
|
| 326 |
-
| 1.
|
| 327 |
-
| 2.0 |
|
| 328 |
-
| 2.
|
| 329 |
-
| 2.
|
| 330 |
-
| 2.
|
| 331 |
-
| 2.
|
| 332 |
-
| 2.
|
| 333 |
-
| 2.
|
| 334 |
-
| 2.
|
| 335 |
-
|
|
| 336 |
-
| 3.
|
| 337 |
-
| 3.
|
| 338 |
-
| 3.
|
| 339 |
-
| 3.
|
| 340 |
-
| 3.
|
| 341 |
-
| 3.
|
| 342 |
-
| 3.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
|
| 344 |
|
| 345 |
### Framework Versions
|
|
|
|
| 4 |
- cross-encoder
|
| 5 |
- reranker
|
| 6 |
- generated_from_trainer
|
| 7 |
+
- dataset_size:24588
|
| 8 |
- loss:BinaryCrossEntropyLoss
|
| 9 |
base_model: Alibaba-NLP/gte-multilingual-reranker-base
|
| 10 |
pipeline_tag: text-ranking
|
|
|
|
| 23 |
type: validation
|
| 24 |
metrics:
|
| 25 |
- type: pearson
|
| 26 |
+
value: 0.875500492479389
|
| 27 |
name: Pearson
|
| 28 |
- type: spearman
|
| 29 |
+
value: 0.8709281334702662
|
| 30 |
name: Spearman
|
| 31 |
---
|
| 32 |
|
|
|
|
| 70 |
model = CrossEncoder("cross_encoder_model_id")
|
| 71 |
# Get scores for pairs of texts
|
| 72 |
pairs = [
|
| 73 |
+
['What is the average rent price in Canada?', 'Title: "How many hours do Americans sleep at night (United States)"\nCollections: YouGov Trackers\nDatasets: YouGovTrackerValueV2\nChart Type: survey:timeseries\nSources: YouGov'],
|
| 74 |
+
['for the topic digital foortprint and identity use "\t " to give a description on if there was an provided teaching materials for this activity.', 'Title: "Different ways Americans define gender for someone who says they are transgender (United States)"\nCollections: YouGov Trackers\nDatasets: YouGovTrackerValueV2\nChart Type: survey:timeseries\nSources: YouGov'],
|
| 75 |
+
['Which U.S. cities or counties have the highest rates of aggravated assault involving a deadly weapon per 100,000 residents?', 'Title: "U.S. Bank Overview, CITY Overview"\nCollections: Companies\nDatasets: InstrumentClosePrice1Day\nChart Type: timeseries:eav_v3\nCanonical forms: "U.S. Bancorp"="closing_price", "Club De Futbol Intercity Sad"="closing_price"'],
|
| 76 |
+
['Black identity topics', 'Title: "Different ways Americans define gender for someone who says they are transgender (United States)"\nCollections: YouGov Trackers\nDatasets: YouGovTrackerValueV2\nChart Type: survey:timeseries\nSources: YouGov'],
|
| 77 |
+
['Which company in the Interactive Media and Services category has the highest market capitalization?', 'Title: "DigiPlus Interactive. Capital Expenditure (Quarterly)"\nCollections: Companies\nDatasets: StandardIncomeStatement\nChart Type: timeseries:eav_v3\nCanonical forms: "Capital Expenditure"="capital_expenditure"\nSources: S&P Global'],
|
| 78 |
]
|
| 79 |
scores = model.predict(pairs)
|
| 80 |
print(scores.shape)
|
|
|
|
| 82 |
|
| 83 |
# Or rank different texts based on similarity to a single text
|
| 84 |
ranks = model.rank(
|
| 85 |
+
'What is the average rent price in Canada?',
|
| 86 |
[
|
| 87 |
+
'Title: "How many hours do Americans sleep at night (United States)"\nCollections: YouGov Trackers\nDatasets: YouGovTrackerValueV2\nChart Type: survey:timeseries\nSources: YouGov',
|
| 88 |
+
'Title: "Different ways Americans define gender for someone who says they are transgender (United States)"\nCollections: YouGov Trackers\nDatasets: YouGovTrackerValueV2\nChart Type: survey:timeseries\nSources: YouGov',
|
| 89 |
+
'Title: "U.S. Bank Overview, CITY Overview"\nCollections: Companies\nDatasets: InstrumentClosePrice1Day\nChart Type: timeseries:eav_v3\nCanonical forms: "U.S. Bancorp"="closing_price", "Club De Futbol Intercity Sad"="closing_price"',
|
| 90 |
+
'Title: "Different ways Americans define gender for someone who says they are transgender (United States)"\nCollections: YouGov Trackers\nDatasets: YouGovTrackerValueV2\nChart Type: survey:timeseries\nSources: YouGov',
|
| 91 |
+
'Title: "DigiPlus Interactive. Capital Expenditure (Quarterly)"\nCollections: Companies\nDatasets: StandardIncomeStatement\nChart Type: timeseries:eav_v3\nCanonical forms: "Capital Expenditure"="capital_expenditure"\nSources: S&P Global',
|
| 92 |
]
|
| 93 |
)
|
| 94 |
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
|
|
|
|
| 129 |
|
| 130 |
| Metric | Value |
|
| 131 |
|:-------------|:-----------|
|
| 132 |
+
| pearson | 0.8755 |
|
| 133 |
+
| **spearman** | **0.8709** |
|
| 134 |
|
| 135 |
<!--
|
| 136 |
## Bias, Risks and Limitations
|
|
|
|
| 150 |
|
| 151 |
#### Unnamed Dataset
|
| 152 |
|
| 153 |
+
* Size: 24,588 training samples
|
| 154 |
* Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
|
| 155 |
* Approximate statistics based on the first 1000 samples:
|
| 156 |
| | sentence_0 | sentence_1 | label |
|
| 157 |
|:--------|:-----------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 158 |
| type | string | string | float |
|
| 159 |
+
| details | <ul><li>min: 3 characters</li><li>mean: 88.65 characters</li><li>max: 998 characters</li></ul> | <ul><li>min: 73 characters</li><li>mean: 169.97 characters</li><li>max: 352 characters</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.41</li><li>max: 1.0</li></ul> |
|
| 160 |
* Samples:
|
| 161 |
+
| sentence_0 | sentence_1 | label |
|
| 162 |
+
|:------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------|
|
| 163 |
+
| <code>What is the average rent price in Canada?</code> | <code>Title: "How many hours do Americans sleep at night (United States)"<br>Collections: YouGov Trackers<br>Datasets: YouGovTrackerValueV2<br>Chart Type: survey:timeseries<br>Sources: YouGov</code> | <code>0.0</code> |
|
| 164 |
+
| <code>for the topic digital foortprint and identity use " " to give a description on if there was an provided teaching materials for this activity.</code> | <code>Title: "Different ways Americans define gender for someone who says they are transgender (United States)"<br>Collections: YouGov Trackers<br>Datasets: YouGovTrackerValueV2<br>Chart Type: survey:timeseries<br>Sources: YouGov</code> | <code>0.25</code> |
|
| 165 |
+
| <code>Which U.S. cities or counties have the highest rates of aggravated assault involving a deadly weapon per 100,000 residents?</code> | <code>Title: "U.S. Bank Overview, CITY Overview"<br>Collections: Companies<br>Datasets: InstrumentClosePrice1Day<br>Chart Type: timeseries:eav_v3<br>Canonical forms: "U.S. Bancorp"="closing_price", "Club De Futbol Intercity Sad"="closing_price"</code> | <code>0.0</code> |
|
| 166 |
* Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
|
| 167 |
```json
|
| 168 |
{
|
|
|
|
| 308 |
### Training Logs
|
| 309 |
| Epoch | Step | Training Loss | validation_spearman |
|
| 310 |
|:------:|:----:|:-------------:|:-------------------:|
|
| 311 |
+
| 0.1300 | 100 | - | 0.7581 |
|
| 312 |
+
| 0.2601 | 200 | - | 0.7928 |
|
| 313 |
+
| 0.3901 | 300 | - | 0.8105 |
|
| 314 |
+
| 0.5202 | 400 | - | 0.8252 |
|
| 315 |
+
| 0.6502 | 500 | 0.4726 | 0.8306 |
|
| 316 |
+
| 0.7802 | 600 | - | 0.8338 |
|
| 317 |
+
| 0.9103 | 700 | - | 0.8398 |
|
| 318 |
+
| 1.0 | 769 | - | 0.8406 |
|
| 319 |
+
| 1.0403 | 800 | - | 0.8412 |
|
| 320 |
+
| 1.1704 | 900 | - | 0.8479 |
|
| 321 |
+
| 1.3004 | 1000 | 0.4027 | 0.8525 |
|
| 322 |
+
| 1.4304 | 1100 | - | 0.8521 |
|
| 323 |
+
| 1.5605 | 1200 | - | 0.8549 |
|
| 324 |
+
| 1.6905 | 1300 | - | 0.8591 |
|
| 325 |
+
| 1.8205 | 1400 | - | 0.8619 |
|
| 326 |
+
| 1.9506 | 1500 | 0.3793 | 0.8614 |
|
| 327 |
+
| 2.0 | 1538 | - | 0.8627 |
|
| 328 |
+
| 2.0806 | 1600 | - | 0.8623 |
|
| 329 |
+
| 2.2107 | 1700 | - | 0.8641 |
|
| 330 |
+
| 2.3407 | 1800 | - | 0.8598 |
|
| 331 |
+
| 2.4707 | 1900 | - | 0.8655 |
|
| 332 |
+
| 2.6008 | 2000 | 0.3534 | 0.8641 |
|
| 333 |
+
| 2.7308 | 2100 | - | 0.8651 |
|
| 334 |
+
| 2.8609 | 2200 | - | 0.8656 |
|
| 335 |
+
| 2.9909 | 2300 | - | 0.8668 |
|
| 336 |
+
| 3.0 | 2307 | - | 0.8660 |
|
| 337 |
+
| 3.1209 | 2400 | - | 0.8678 |
|
| 338 |
+
| 3.2510 | 2500 | 0.3387 | 0.8654 |
|
| 339 |
+
| 3.3810 | 2600 | - | 0.8654 |
|
| 340 |
+
| 3.5111 | 2700 | - | 0.8667 |
|
| 341 |
+
| 3.6411 | 2800 | - | 0.8676 |
|
| 342 |
+
| 3.7711 | 2900 | - | 0.8674 |
|
| 343 |
+
| 3.9012 | 3000 | 0.3335 | 0.8704 |
|
| 344 |
+
| 4.0 | 3076 | - | 0.8703 |
|
| 345 |
+
| 4.0312 | 3100 | - | 0.8698 |
|
| 346 |
+
| 4.1612 | 3200 | - | 0.8709 |
|
| 347 |
|
| 348 |
|
| 349 |
### Framework Versions
|
eval/CrossEncoderCorrelationEvaluator_validation_results.csv
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
epoch,steps,Pearson_Correlation,Spearman_Correlation
|
| 2 |
-
1.0,
|
| 3 |
-
2.0,
|
| 4 |
-
3.0,
|
| 5 |
-
4.0,
|
| 6 |
-
5.0,
|
|
|
|
| 1 |
epoch,steps,Pearson_Correlation,Spearman_Correlation
|
| 2 |
+
1.0,769,0.8422640800344011,0.8405737087278944
|
| 3 |
+
2.0,1538,0.8671876184014233,0.86267528277904
|
| 4 |
+
3.0,2307,0.8685505786860791,0.8660158658561949
|
| 5 |
+
4.0,3076,0.8746765785538436,0.870307593558791
|
| 6 |
+
5.0,3845,0.8738481049232419,0.8697669534338517
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1223854204
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29639f0397bff1fa96e9ad2515d5e6c6d3ba99fd5ae7f2ce6831f63120328e1b
|
| 3 |
size 1223854204
|
training_info.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
Base Model: Alibaba-NLP/gte-multilingual-reranker-base
|
| 2 |
-
Training Samples:
|
| 3 |
Epochs: 5
|
| 4 |
Batch Size: 32
|
| 5 |
Learning Rate: 2e-05
|
|
|
|
| 1 |
Base Model: Alibaba-NLP/gte-multilingual-reranker-base
|
| 2 |
+
Training Samples: 24588
|
| 3 |
Epochs: 5
|
| 4 |
Batch Size: 32
|
| 5 |
Learning Rate: 2e-05
|