mpnet-base-all-mqp-binary
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ tags:
|
|
| 5 |
- feature-extraction
|
| 6 |
- generated_from_trainer
|
| 7 |
- dataset_size:2437
|
| 8 |
-
- loss:
|
| 9 |
base_model: sentence-transformers/all-mpnet-base-v2
|
| 10 |
widget:
|
| 11 |
- source_sentence: I am having troubles and confusing moments with my body and I am
|
|
@@ -49,6 +49,45 @@ widget:
|
|
| 49 |
- What causes stringy and shredded stools?
|
| 50 |
pipeline_tag: sentence-similarity
|
| 51 |
library_name: sentence-transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
---
|
| 53 |
|
| 54 |
# SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
|
|
@@ -139,6 +178,25 @@ You can finetune this model on your own dataset.
|
|
| 139 |
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 140 |
-->
|
| 141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
<!--
|
| 143 |
## Bias, Risks and Limitations
|
| 144 |
|
|
@@ -171,11 +229,12 @@ You can finetune this model on your own dataset.
|
|
| 171 |
| <code>I discovered I get this weakness in my hand whenever I try to snap my fingers, slight pain runs across elbow and wrist?</code> | <code>When I try to snap my fingers there is weakness and pain across elbow and wrist? May I know what are the causes?</code> | <code>1</code> |
|
| 172 |
| <code>If a mother has celiac should the daughter be tested?</code> | <code>What is Celiac disease?</code> | <code>0</code> |
|
| 173 |
| <code>Hi im 18 and I would like to know what I would use or take to get taller?</code> | <code>Can growth hormone taken in minimal quantities increase height after 21 years in a male?</code> | <code>0</code> |
|
| 174 |
-
* Loss: [<code>
|
| 175 |
```json
|
| 176 |
{
|
| 177 |
-
"
|
| 178 |
-
"
|
|
|
|
| 179 |
}
|
| 180 |
```
|
| 181 |
|
|
@@ -197,11 +256,12 @@ You can finetune this model on your own dataset.
|
|
| 197 |
| <code>Okay so i'm on bc and I have had sex (it hurts) i'm bleeding brown and my vagina hurts almost itchy but it hurts?</code> | <code>I noticed a brown discharge and itching in my vaginal area to the point that it hurts. I am also on birth control and have sexual intercourse. What do you think is causing this?</code> | <code>1</code> |
|
| 198 |
| <code>I've had body aches, blocked stuffy nose, headaches, pressure in my face and throat tightness and it feels dry for 6 months is it a bad cold?</code> | <code>For the last 6 months, I've noticed symptoms like body aches, stuffy nose, headaches, pressure sensation in the face, throat tightness and feels dry. Can a cold last this long or should I be looking for something else?</code> | <code>1</code> |
|
| 199 |
| <code>Is there any way to stop my period for a little while without a prescription?</code> | <code>Are there any natural ways to stop my period without having to visit a local doctor?</code> | <code>1</code> |
|
| 200 |
-
* Loss: [<code>
|
| 201 |
```json
|
| 202 |
{
|
| 203 |
-
"
|
| 204 |
-
"
|
|
|
|
| 205 |
}
|
| 206 |
```
|
| 207 |
|
|
@@ -339,9 +399,10 @@ You can finetune this model on your own dataset.
|
|
| 339 |
</details>
|
| 340 |
|
| 341 |
### Training Logs
|
| 342 |
-
| Epoch | Step | Training Loss | Validation Loss |
|
| 343 |
-
|
| 344 |
-
| 0.6536 | 100 |
|
|
|
|
| 345 |
|
| 346 |
|
| 347 |
### Framework Versions
|
|
@@ -370,14 +431,17 @@ You can finetune this model on your own dataset.
|
|
| 370 |
}
|
| 371 |
```
|
| 372 |
|
| 373 |
-
####
|
| 374 |
```bibtex
|
| 375 |
-
@
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
|
|
|
|
|
|
|
|
|
| 381 |
}
|
| 382 |
```
|
| 383 |
|
|
|
|
| 5 |
- feature-extraction
|
| 6 |
- generated_from_trainer
|
| 7 |
- dataset_size:2437
|
| 8 |
+
- loss:ContrastiveLoss
|
| 9 |
base_model: sentence-transformers/all-mpnet-base-v2
|
| 10 |
widget:
|
| 11 |
- source_sentence: I am having troubles and confusing moments with my body and I am
|
|
|
|
| 49 |
- What causes stringy and shredded stools?
|
| 50 |
pipeline_tag: sentence-similarity
|
| 51 |
library_name: sentence-transformers
|
| 52 |
+
metrics:
|
| 53 |
+
- cosine_accuracy
|
| 54 |
+
- cosine_accuracy_threshold
|
| 55 |
+
- cosine_f1
|
| 56 |
+
- cosine_f1_threshold
|
| 57 |
+
- cosine_precision
|
| 58 |
+
- cosine_recall
|
| 59 |
+
- cosine_ap
|
| 60 |
+
model-index:
|
| 61 |
+
- name: SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
|
| 62 |
+
results:
|
| 63 |
+
- task:
|
| 64 |
+
type: binary-classification
|
| 65 |
+
name: Binary Classification
|
| 66 |
+
dataset:
|
| 67 |
+
name: all mqp test
|
| 68 |
+
type: all-mqp-test
|
| 69 |
+
metrics:
|
| 70 |
+
- type: cosine_accuracy
|
| 71 |
+
value: 0.8786885245901639
|
| 72 |
+
name: Cosine Accuracy
|
| 73 |
+
- type: cosine_accuracy_threshold
|
| 74 |
+
value: 0.7678120136260986
|
| 75 |
+
name: Cosine Accuracy Threshold
|
| 76 |
+
- type: cosine_f1
|
| 77 |
+
value: 0.8796147672552167
|
| 78 |
+
name: Cosine F1
|
| 79 |
+
- type: cosine_f1_threshold
|
| 80 |
+
value: 0.7446306943893433
|
| 81 |
+
name: Cosine F1 Threshold
|
| 82 |
+
- type: cosine_precision
|
| 83 |
+
value: 0.8810289389067524
|
| 84 |
+
name: Cosine Precision
|
| 85 |
+
- type: cosine_recall
|
| 86 |
+
value: 0.8782051282051282
|
| 87 |
+
name: Cosine Recall
|
| 88 |
+
- type: cosine_ap
|
| 89 |
+
value: 0.9474266832530879
|
| 90 |
+
name: Cosine Ap
|
| 91 |
---
|
| 92 |
|
| 93 |
# SentenceTransformer based on sentence-transformers/all-mpnet-base-v2
|
|
|
|
| 178 |
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 179 |
-->
|
| 180 |
|
| 181 |
+
## Evaluation
|
| 182 |
+
|
| 183 |
+
### Metrics
|
| 184 |
+
|
| 185 |
+
#### Binary Classification
|
| 186 |
+
|
| 187 |
+
* Dataset: `all-mqp-test`
|
| 188 |
+
* Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
|
| 189 |
+
|
| 190 |
+
| Metric | Value |
|
| 191 |
+
|:--------------------------|:-----------|
|
| 192 |
+
| cosine_accuracy | 0.8787 |
|
| 193 |
+
| cosine_accuracy_threshold | 0.7678 |
|
| 194 |
+
| cosine_f1 | 0.8796 |
|
| 195 |
+
| cosine_f1_threshold | 0.7446 |
|
| 196 |
+
| cosine_precision | 0.881 |
|
| 197 |
+
| cosine_recall | 0.8782 |
|
| 198 |
+
| **cosine_ap** | **0.9474** |
|
| 199 |
+
|
| 200 |
<!--
|
| 201 |
## Bias, Risks and Limitations
|
| 202 |
|
|
|
|
| 229 |
| <code>I discovered I get this weakness in my hand whenever I try to snap my fingers, slight pain runs across elbow and wrist?</code> | <code>When I try to snap my fingers there is weakness and pain across elbow and wrist? May I know what are the causes?</code> | <code>1</code> |
|
| 230 |
| <code>If a mother has celiac should the daughter be tested?</code> | <code>What is Celiac disease?</code> | <code>0</code> |
|
| 231 |
| <code>Hi im 18 and I would like to know what I would use or take to get taller?</code> | <code>Can growth hormone taken in minimal quantities increase height after 21 years in a male?</code> | <code>0</code> |
|
| 232 |
+
* Loss: [<code>ContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#contrastiveloss) with these parameters:
|
| 233 |
```json
|
| 234 |
{
|
| 235 |
+
"distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
|
| 236 |
+
"margin": 0.5,
|
| 237 |
+
"size_average": true
|
| 238 |
}
|
| 239 |
```
|
| 240 |
|
|
|
|
| 256 |
| <code>Okay so i'm on bc and I have had sex (it hurts) i'm bleeding brown and my vagina hurts almost itchy but it hurts?</code> | <code>I noticed a brown discharge and itching in my vaginal area to the point that it hurts. I am also on birth control and have sexual intercourse. What do you think is causing this?</code> | <code>1</code> |
|
| 257 |
| <code>I've had body aches, blocked stuffy nose, headaches, pressure in my face and throat tightness and it feels dry for 6 months is it a bad cold?</code> | <code>For the last 6 months, I've noticed symptoms like body aches, stuffy nose, headaches, pressure sensation in the face, throat tightness and feels dry. Can a cold last this long or should I be looking for something else?</code> | <code>1</code> |
|
| 258 |
| <code>Is there any way to stop my period for a little while without a prescription?</code> | <code>Are there any natural ways to stop my period without having to visit a local doctor?</code> | <code>1</code> |
|
| 259 |
+
* Loss: [<code>ContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#contrastiveloss) with these parameters:
|
| 260 |
```json
|
| 261 |
{
|
| 262 |
+
"distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
|
| 263 |
+
"margin": 0.5,
|
| 264 |
+
"size_average": true
|
| 265 |
}
|
| 266 |
```
|
| 267 |
|
|
|
|
| 399 |
</details>
|
| 400 |
|
| 401 |
### Training Logs
|
| 402 |
+
| Epoch | Step | Training Loss | Validation Loss | all-mqp-test_cosine_ap |
|
| 403 |
+
|:------:|:----:|:-------------:|:---------------:|:----------------------:|
|
| 404 |
+
| 0.6536 | 100 | 0.0137 | 0.0135 | - |
|
| 405 |
+
| 1.0 | 153 | - | - | 0.9474 |
|
| 406 |
|
| 407 |
|
| 408 |
### Framework Versions
|
|
|
|
| 431 |
}
|
| 432 |
```
|
| 433 |
|
| 434 |
+
#### ContrastiveLoss
|
| 435 |
```bibtex
|
| 436 |
+
@inproceedings{hadsell2006dimensionality,
|
| 437 |
+
author={Hadsell, R. and Chopra, S. and LeCun, Y.},
|
| 438 |
+
booktitle={2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06)},
|
| 439 |
+
title={Dimensionality Reduction by Learning an Invariant Mapping},
|
| 440 |
+
year={2006},
|
| 441 |
+
volume={2},
|
| 442 |
+
number={},
|
| 443 |
+
pages={1735-1742},
|
| 444 |
+
doi={10.1109/CVPR.2006.100}
|
| 445 |
}
|
| 446 |
```
|
| 447 |
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 437967672
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7293fe1746e1badcf524f725bf62ee5a361bbe7301987361cd0450c9a4c0784
|
| 3 |
size 437967672
|
runs/Feb06_09-20-14_97946eed5a20/events.out.tfevents.1738833655.97946eed5a20.601.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6aad1eba4732e71463a576290c36dde2d3ed41da80351580cbb3f5d60685cbf6
|
| 3 |
+
size 5254
|