ColeH0415 commited on
Commit
2f751f4
·
verified ·
1 Parent(s): ed58e66

CE fine-tuned epoch 2/3 best_val=0.6000

Browse files
Files changed (2) hide show
  1. README.md +37 -33
  2. model.safetensors +1 -1
README.md CHANGED
@@ -28,25 +28,25 @@ model-index:
28
  type: ce-val
29
  metrics:
30
  - type: accuracy
31
- value: 0.5636363636363636
32
  name: Accuracy
33
  - type: accuracy_threshold
34
- value: 0.512444794178009
35
  name: Accuracy Threshold
36
  - type: f1
37
- value: 0.6711297071129707
38
  name: F1
39
  - type: f1_threshold
40
- value: 0.4493926167488098
41
  name: F1 Threshold
42
  - type: precision
43
- value: 0.5127877237851662
44
  name: Precision
45
  - type: recall
46
- value: 0.9709443099273608
47
  name: Recall
48
  - type: average_precision
49
- value: 0.565654586279988
50
  name: Average Precision
51
  ---
52
 
@@ -99,25 +99,25 @@ from sentence_transformers import CrossEncoder
99
  model = CrossEncoder("cross_encoder_model_id")
100
  # Get scores for pairs of inputs
101
  pairs = [
102
- ['An independent inquiry found CRU is a small research unit with limited resources and their rigour and honesty are not in doubt.', 'The media and other scientific organisations were criticised for having "sometimes neglected" to reflect the uncertainties, doubts and assumptions of the work done by the CRU.'],
103
- ['As president, Obama will immediately close the Mississippi River Gulf Outlet, which experts say funneled floodwater into New Orleans.', 'Levees along the MRGO and the Intracoastal Waterway were breached in approximately 20 places, directly flooding most of St. Bernard Parish and New Orleans East.'],
104
- ['If we double atmospheric carbon dioxide[…] we’d only raise global surface temperatures by about a degree Celsius.', 'Not only do increasing carbon dioxide concentrations lead to increases in global surface temperature, but increasing global temperatures also cause increasing concentrations of carbon dioxide.'],
105
- ['But as that upper layer warms up, the oxygen-rich waters are less likely to mix down into cooler layers of the ocean because the warm waters are less dense and do not sink as readily.', 'Water that is saltier or cooler will be denser, and will sink in relation to the surrounding water.'],
106
- ['Less than half of published scientists endorse global warming.', 'Scientists Reach 100% Consensus on Anthropogenic Global Warming.'],
107
  ]
108
  scores = model.predict(pairs)
109
  print(scores)
110
- # [0.5286 0.4566 0.49 0.5111 0.6522]
111
 
112
  # Or rank different texts based on similarity to a single text
113
  ranks = model.rank(
114
- 'An independent inquiry found CRU is a small research unit with limited resources and their rigour and honesty are not in doubt.',
115
  [
116
- 'The media and other scientific organisations were criticised for having "sometimes neglected" to reflect the uncertainties, doubts and assumptions of the work done by the CRU.',
117
- 'Levees along the MRGO and the Intracoastal Waterway were breached in approximately 20 places, directly flooding most of St. Bernard Parish and New Orleans East.',
118
- 'Not only do increasing carbon dioxide concentrations lead to increases in global surface temperature, but increasing global temperatures also cause increasing concentrations of carbon dioxide.',
119
- 'Water that is saltier or cooler will be denser, and will sink in relation to the surrounding water.',
120
- 'Scientists Reach 100% Consensus on Anthropogenic Global Warming.',
121
  ]
122
  )
123
  # [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
@@ -158,13 +158,13 @@ You can finetune this model on your own dataset.
158
 
159
  | Metric | Value |
160
  |:----------------------|:-----------|
161
- | accuracy | 0.5636 |
162
- | accuracy_threshold | 0.5124 |
163
- | f1 | 0.6711 |
164
- | f1_threshold | 0.4494 |
165
- | precision | 0.5128 |
166
- | recall | 0.9709 |
167
- | **average_precision** | **0.5657** |
168
 
169
  <!--
170
  ## Bias, Risks and Limitations
@@ -190,13 +190,13 @@ You can finetune this model on your own dataset.
190
  | | sentence_0 | sentence_1 | label |
191
  |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:---------------------------------------------------------------|
192
  | type | string | string | float |
193
- | details | <ul><li>min: 7 tokens</li><li>mean: 26.73 tokens</li><li>max: 66 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 31.55 tokens</li><li>max: 133 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.53</li><li>max: 1.0</li></ul> |
194
  * Samples:
195
- | sentence_0 | sentence_1 | label |
196
- |:---------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
197
- | <code>An independent inquiry found CRU is a small research unit with limited resources and their rigour and honesty are not in doubt.</code> | <code>The media and other scientific organisations were criticised for having "sometimes neglected" to reflect the uncertainties, doubts and assumptions of the work done by the CRU.</code> | <code>0.0</code> |
198
- | <code>As president, Obama will immediately close the Mississippi River Gulf Outlet, which experts say funneled floodwater into New Orleans.</code> | <code>Levees along the MRGO and the Intracoastal Waterway were breached in approximately 20 places, directly flooding most of St. Bernard Parish and New Orleans East.</code> | <code>1.0</code> |
199
- | <code>If we double atmospheric carbon dioxide[…] we’d only raise global surface temperatures by about a degree Celsius.</code> | <code>Not only do increasing carbon dioxide concentrations lead to increases in global surface temperature, but increasing global temperatures also cause increasing concentrations of carbon dioxide.</code> | <code>0.0</code> |
200
  * Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
201
  ```json
202
  {
@@ -322,10 +322,14 @@ You can finetune this model on your own dataset.
322
  | 0.5391 | 1000 | 0.6983 | - |
323
  | 0.8086 | 1500 | 0.6982 | - |
324
  | -1 | -1 | - | 0.5657 |
 
 
 
 
325
 
326
 
327
  ### Training Time
328
- - **Training**: 7.1 minutes
329
 
330
  ### Framework Versions
331
  - Python: 3.12.13
 
28
  type: ce-val
29
  metrics:
30
  - type: accuracy
31
+ value: 0.6
32
  name: Accuracy
33
  - type: accuracy_threshold
34
+ value: 0.5077031850814819
35
  name: Accuracy Threshold
36
  - type: f1
37
+ value: 0.6791489361702127
38
  name: F1
39
  - type: f1_threshold
40
+ value: 0.4203318953514099
41
  name: F1 Threshold
42
  - type: precision
43
+ value: 0.5236220472440944
44
  name: Precision
45
  - type: recall
46
+ value: 0.9661016949152542
47
  name: Recall
48
  - type: average_precision
49
+ value: 0.6083361348816916
50
  name: Average Precision
51
  ---
52
 
 
99
  model = CrossEncoder("cross_encoder_model_id")
100
  # Get scores for pairs of inputs
101
  pairs = [
102
+ ['The last time the planet was even four degrees warmer, Peter Brannen points out in The Ends of the World, his new history of the planet’s major extinction events, the oceans were hundreds of feet higher.', 'Almost all scientists acknowledge that the rate of species loss is greater now than at any time in human history, with extinctions occurring at rates hundreds of times higher than background extinction rates.'],
103
+ ['[S]unspot activity on the surface of our star has dropped to a new low.', 'At solar-cycle minimum, the toroidal field is, correspondingly, at minimum strength, sunspots are relatively rare, and the poloidal field is at its maximum strength.'],
104
+ ['More money is dedicated within the Department of Homeland Security to climate change than what\'s spent combating "Islamist terrorists radicalizing over the Internet in the United States of America."', 'Homeland security is officially defined by the National Strategy for Homeland Security as "a concerted national effort to prevent terrorist attacks within the United States, reduce America\'s vulnerability to terrorism, and minimize the damage and recover from attacks that do occur".'],
105
+ ['Worst-case global heating scenarios may need to be revised upwards in light of a better understanding of the role of clouds, scientists have said.', 'With this information, scientists can produce scenarios of how greenhouse gas emissions may vary in the future.'],
106
+ ['Prof Adam Scaife, a climate modelling expert at the UK’s Met Office, said the evidence for a link to shrinking Arctic ice was now good: ‘The consensus points towards that being a real effect.’”', 'Some models of modern climate exhibit Arctic amplification without changes in snow and ice cover.'],
107
  ]
108
  scores = model.predict(pairs)
109
  print(scores)
110
+ # [0.6799 0.5912 0.5 0.4181 0.4313]
111
 
112
  # Or rank different texts based on similarity to a single text
113
  ranks = model.rank(
114
+ 'The last time the planet was even four degrees warmer, Peter Brannen points out in The Ends of the World, his new history of the planet’s major extinction events, the oceans were hundreds of feet higher.',
115
  [
116
+ 'Almost all scientists acknowledge that the rate of species loss is greater now than at any time in human history, with extinctions occurring at rates hundreds of times higher than background extinction rates.',
117
+ 'At solar-cycle minimum, the toroidal field is, correspondingly, at minimum strength, sunspots are relatively rare, and the poloidal field is at its maximum strength.',
118
+ 'Homeland security is officially defined by the National Strategy for Homeland Security as "a concerted national effort to prevent terrorist attacks within the United States, reduce America\'s vulnerability to terrorism, and minimize the damage and recover from attacks that do occur".',
119
+ 'With this information, scientists can produce scenarios of how greenhouse gas emissions may vary in the future.',
120
+ 'Some models of modern climate exhibit Arctic amplification without changes in snow and ice cover.',
121
  ]
122
  )
123
  # [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
 
158
 
159
  | Metric | Value |
160
  |:----------------------|:-----------|
161
+ | accuracy | 0.6 |
162
+ | accuracy_threshold | 0.5077 |
163
+ | f1 | 0.6791 |
164
+ | f1_threshold | 0.4203 |
165
+ | precision | 0.5236 |
166
+ | recall | 0.9661 |
167
+ | **average_precision** | **0.6083** |
168
 
169
  <!--
170
  ## Bias, Risks and Limitations
 
190
  | | sentence_0 | sentence_1 | label |
191
  |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:---------------------------------------------------------------|
192
  | type | string | string | float |
193
+ | details | <ul><li>min: 7 tokens</li><li>mean: 26.66 tokens</li><li>max: 80 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 31.89 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.52</li><li>max: 1.0</li></ul> |
194
  * Samples:
195
+ | sentence_0 | sentence_1 | label |
196
+ |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
197
+ | <code>The last time the planet was even four degrees warmer, Peter Brannen points out in The Ends of the World, his new history of the planet’s major extinction events, the oceans were hundreds of feet higher.</code> | <code>Almost all scientists acknowledge that the rate of species loss is greater now than at any time in human history, with extinctions occurring at rates hundreds of times higher than background extinction rates.</code> | <code>0.0</code> |
198
+ | <code>[S]unspot activity on the surface of our star has dropped to a new low.</code> | <code>At solar-cycle minimum, the toroidal field is, correspondingly, at minimum strength, sunspots are relatively rare, and the poloidal field is at its maximum strength.</code> | <code>1.0</code> |
199
+ | <code>More money is dedicated within the Department of Homeland Security to climate change than what's spent combating "Islamist terrorists radicalizing over the Internet in the United States of America."</code> | <code>Homeland security is officially defined by the National Strategy for Homeland Security as "a concerted national effort to prevent terrorist attacks within the United States, reduce America's vulnerability to terrorism, and minimize the damage and recover from attacks that do occur".</code> | <code>1.0</code> |
200
  * Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
201
  ```json
202
  {
 
322
  | 0.5391 | 1000 | 0.6983 | - |
323
  | 0.8086 | 1500 | 0.6982 | - |
324
  | -1 | -1 | - | 0.5657 |
325
+ | 0.2695 | 500 | 0.6835 | - |
326
+ | 0.5391 | 1000 | 0.6840 | - |
327
+ | 0.8086 | 1500 | 0.6848 | - |
328
+ | -1 | -1 | - | 0.6083 |
329
 
330
 
331
  ### Training Time
332
+ - **Training**: 7.2 minutes
333
 
334
  ### Framework Versions
335
  - Python: 3.12.13
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:922a849772df9d09c87547738e9d2e009866a84a654b460b49743b396fc81a74
3
  size 737716172
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97b936db2695b03518b21df64ef8888ab2b08529a82fbaff59162c06c34daf7f
3
  size 737716172