leavoigt commited on
Commit
99ca896
1 Parent(s): bdd9b5c

Add SetFit model

Browse files
Files changed (3) hide show
  1. README.md +58 -57
  2. model_head.pkl +1 -1
  3. pytorch_model.bin +1 -1
README.md CHANGED
@@ -15,35 +15,36 @@ metrics:
15
  - F1-Score
16
  - accuracy
17
  widget:
18
- - text: Amended proposal for a Regulation of the European Parliament and of the Council
19
- on establishing the framework for achieving climate neutrality and amending Regulation
20
- (EU) 2018/1999 (European Climate Law). COM(2020) 563 (currently undergoing the
21
- EU internal legislative process)↩︎. Council conclusions of 7 March 2011 on European
22
- Pact for Gender Equality (2011-2020)↩︎. Council conclusions of 9 April 2019, Towards
23
- an ever more sustainable Union by 2030↩︎. Council conclusions of 15 May 2017 on
24
- Indigenous Peoples↩︎. Regulation (EU) 2018/1999↩︎.
25
- - text: 'Development of 15,000 ha of shallows and irrigated areas and their exploitation
26
- for the intensive rice cultivation system. Agriculture, water. 705. 28. Development
27
- of research on health and climate change: total of three activities. Health. 690.
28
- 29. Audit of plans to develop all classified or protected forests for updating
29
- purposes. Forests-land use. 685. 30. Strengthening of capabilities to forecast
30
- and respond to phenomena associated with climate change: creation of an MT health
31
- care monitoring centre. Health. 680. 31. Participative development of sustainable
32
- land.'
33
- - text: The Ministry of Health notes that any adaptation work should prioritise vulnerable
34
- populations. It also considers that more work is needed in health system planning,
35
- to accommodate a potential increase in migrants and refugees
36
- - text: 'The overall outcome is to ensure that projects and programmes are gender
37
- responsive: meaning that it aims to go beyond gender sensitivity to actively promote
38
- gender equality and women’s empowerment. The country is committed to achieving
39
- SDG 5: Gender equality by promoting low carbon development where men and women
40
- contributions to climate change mitigation and adaptation are recognized and valued,
41
- existing gender inequalities are reduced and opportunities for effective empowerment
42
- for women are promoted.'
43
- - text: Cities depend heavily on other cities and regions to provide them with indispensable
44
- services such as food, water and energy and the infrastructure to deliver them.
45
- Ecosystem services from surrounding regions provide fresh air, store or drain
46
- flood water as well as drinking water
 
47
  pipeline_tag: text-classification
48
  inference: false
49
  base_model: sentence-transformers/all-mpnet-base-v2
@@ -59,28 +60,28 @@ model-index:
59
  split: test
60
  metrics:
61
  - type: Precision_micro
62
- value: 0.7692307692307693
63
  name: Precision_Micro
64
  - type: Precision_weighted
65
- value: 0.7748199704721445
66
  name: Precision_Weighted
67
  - type: Precision_samples
68
- value: 0.7692307692307693
69
  name: Precision_Samples
70
  - type: Recall_micro
71
- value: 0.7692307692307693
72
  name: Recall_Micro
73
  - type: Recall_weighted
74
- value: 0.7692307692307693
75
  name: Recall_Weighted
76
  - type: Recall_samples
77
- value: 0.7692307692307693
78
  name: Recall_Samples
79
  - type: F1-Score
80
- value: 0.7692307692307693
81
  name: F1-Score
82
  - type: accuracy
83
- value: 0.7692307692307693
84
  name: Accuracy
85
  ---
86
 
@@ -116,7 +117,7 @@ The model has been trained using an efficient few-shot learning technique that i
116
  ### Metrics
117
  | Label | Precision_Micro | Precision_Weighted | Precision_Samples | Recall_Micro | Recall_Weighted | Recall_Samples | F1-Score | Accuracy |
118
  |:--------|:----------------|:-------------------|:------------------|:-------------|:----------------|:---------------|:---------|:---------|
119
- | **all** | 0.7692 | 0.7748 | 0.7692 | 0.7692 | 0.7692 | 0.7692 | 0.7692 | 0.7692 |
120
 
121
  ## Uses
122
 
@@ -136,7 +137,7 @@ from setfit import SetFitModel
136
  # Download from the 🤗 Hub
137
  model = SetFitModel.from_pretrained("leavoigt/vulnerability_target")
138
  # Run inference
139
- preds = model("The Ministry of Health notes that any adaptation work should prioritise vulnerable populations. It also considers that more work is needed in health system planning, to accommodate a potential increase in migrants and refugees")
140
  ```
141
 
142
  <!--
@@ -168,7 +169,7 @@ preds = model("The Ministry of Health notes that any adaptation work should prio
168
  ### Training Set Metrics
169
  | Training set | Min | Median | Max |
170
  |:-------------|:----|:--------|:----|
171
- | Word count | 15 | 72.4819 | 238 |
172
 
173
  ### Training Hyperparameters
174
  - batch_size: (16, 16)
@@ -191,23 +192,23 @@ preds = model("The Ministry of Health notes that any adaptation work should prio
191
  ### Training Results
192
  | Epoch | Step | Training Loss | Validation Loss |
193
  |:------:|:----:|:-------------:|:---------------:|
194
- | 0.0012 | 1 | 0.2938 | - |
195
- | 0.0602 | 50 | 0.2188 | - |
196
- | 0.1205 | 100 | 0.1733 | - |
197
- | 0.1807 | 150 | 0.1578 | - |
198
- | 0.2410 | 200 | 0.02 | - |
199
- | 0.3012 | 250 | 0.0028 | - |
200
- | 0.3614 | 300 | 0.0004 | - |
201
- | 0.4217 | 350 | 0.0011 | - |
202
- | 0.4819 | 400 | 0.0008 | - |
203
- | 0.5422 | 450 | 0.0005 | - |
204
- | 0.6024 | 500 | 0.0002 | - |
205
- | 0.6627 | 550 | 0.0002 | - |
206
- | 0.7229 | 600 | 0.0004 | - |
207
- | 0.7831 | 650 | 0.0332 | - |
208
- | 0.8434 | 700 | 0.0003 | - |
209
- | 0.9036 | 750 | 0.0003 | - |
210
- | 0.9639 | 800 | 0.0004 | - |
211
 
212
  ### Framework Versions
213
  - Python: 3.10.12
 
15
  - F1-Score
16
  - accuracy
17
  widget:
18
+ - text: To support the traditional knowledge and adaptive capacity of indigenous peoples
19
+ in the face of climate change, we aim to establish 50 community-based adaptation
20
+ projects led by indigenous peoples by 2030, focusing on the sustainable management
21
+ of natural resources and the preservation of cultural practices.
22
+ - text: Measures related to climate change are incorporated into national policies,
23
+ strategies and plans. In this regard, mechanisms are also promoted to increase
24
+ capacity for effective planning and management in relation to climate change.
25
+ SDG No. 14 (Marine life). Adaptation. There is a link between the Coastal Marine
26
+ Resources sector in the measures proposed in this document and the indicators
27
+ of this SDG regarding the sustainable management and conservation of marine and
28
+ coastal ecosystems to achieve an increase in their climate resilience. SDG No.
29
+ - text: ' Pathways with higher demand for food, feed, and water, more resource-intensive
30
+ consumption and production, and more limited technological improvements in agriculture
31
+ yields result in higher risks from water scarcity in drylands, land degradation,
32
+ and food insecurity 1. This means that communities that rely on agriculture for
33
+ their livelihoods are at risk of losing their crops and experiencing food shortages
34
+ due to climate change.'
35
+ - text: The population aged 60 years and above is projected to increase from almost
36
+ one million (988,000) in 2000 to over six million (6,319,000) by 2050. The female
37
+ aged population will continue to grow faster and will increasingly be far higher
38
+ than the male population for the advanced ages. Policies addressing the needs
39
+ of the elderly will have to take the sex structure of the aged population into
40
+ consideration.
41
+ - text: Indigenous peoples who choose or are forced to migrate away from their traditional
42
+ lands often face double discrimination as both migrants and as indigenous peoples.
43
+ Indigenous peoples may be more vulnerable to irregular migration such as trafficking
44
+ and smuggling, owing to sudden displacement by a climactic event, limited legal
45
+ migration options and limited opportunities to make informed choices. Deforestation,
46
+ particularly in developing countries, is pushing indigenous families to migrate
47
+ to cities for economic reasons, often ending up in urban slums.
48
  pipeline_tag: text-classification
49
  inference: false
50
  base_model: sentence-transformers/all-mpnet-base-v2
 
60
  split: test
61
  metrics:
62
  - type: Precision_micro
63
+ value: 0.7762237762237763
64
  name: Precision_Micro
65
  - type: Precision_weighted
66
+ value: 0.7968800430338892
67
  name: Precision_Weighted
68
  - type: Precision_samples
69
+ value: 0.7762237762237763
70
  name: Precision_Samples
71
  - type: Recall_micro
72
+ value: 0.7762237762237763
73
  name: Recall_Micro
74
  - type: Recall_weighted
75
+ value: 0.7762237762237763
76
  name: Recall_Weighted
77
  - type: Recall_samples
78
+ value: 0.7762237762237763
79
  name: Recall_Samples
80
  - type: F1-Score
81
+ value: 0.7762237762237763
82
  name: F1-Score
83
  - type: accuracy
84
+ value: 0.7762237762237763
85
  name: Accuracy
86
  ---
87
 
 
117
  ### Metrics
118
  | Label | Precision_Micro | Precision_Weighted | Precision_Samples | Recall_Micro | Recall_Weighted | Recall_Samples | F1-Score | Accuracy |
119
  |:--------|:----------------|:-------------------|:------------------|:-------------|:----------------|:---------------|:---------|:---------|
120
+ | **all** | 0.7762 | 0.7969 | 0.7762 | 0.7762 | 0.7762 | 0.7762 | 0.7762 | 0.7762 |
121
 
122
  ## Uses
123
 
 
137
  # Download from the 🤗 Hub
138
  model = SetFitModel.from_pretrained("leavoigt/vulnerability_target")
139
  # Run inference
140
+ preds = model("To support the traditional knowledge and adaptive capacity of indigenous peoples in the face of climate change, we aim to establish 50 community-based adaptation projects led by indigenous peoples by 2030, focusing on the sustainable management of natural resources and the preservation of cultural practices.")
141
  ```
142
 
143
  <!--
 
169
  ### Training Set Metrics
170
  | Training set | Min | Median | Max |
171
  |:-------------|:----|:--------|:----|
172
+ | Word count | 15 | 70.8675 | 238 |
173
 
174
  ### Training Hyperparameters
175
  - batch_size: (16, 16)
 
192
  ### Training Results
193
  | Epoch | Step | Training Loss | Validation Loss |
194
  |:------:|:----:|:-------------:|:---------------:|
195
+ | 0.0012 | 1 | 0.3493 | - |
196
+ | 0.0602 | 50 | 0.2285 | - |
197
+ | 0.1205 | 100 | 0.1092 | - |
198
+ | 0.1807 | 150 | 0.1348 | - |
199
+ | 0.2410 | 200 | 0.0365 | - |
200
+ | 0.3012 | 250 | 0.0052 | - |
201
+ | 0.3614 | 300 | 0.0012 | - |
202
+ | 0.4217 | 350 | 0.0031 | - |
203
+ | 0.4819 | 400 | 0.0001 | - |
204
+ | 0.5422 | 450 | 0.0011 | - |
205
+ | 0.6024 | 500 | 0.0001 | - |
206
+ | 0.6627 | 550 | 0.0001 | - |
207
+ | 0.7229 | 600 | 0.0001 | - |
208
+ | 0.7831 | 650 | 0.0002 | - |
209
+ | 0.8434 | 700 | 0.0001 | - |
210
+ | 0.9036 | 750 | 0.0001 | - |
211
+ | 0.9639 | 800 | 0.0001 | - |
212
 
213
  ### Framework Versions
214
  - Python: 3.10.12
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f50c1c8ee41837d2379a3431c1409a50a06470ea8c55aaefdf0b1eaa898a57cb
3
  size 13956
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:844022400e9350cbf223c9aa40156d995087c9866811546f81d318d6d8e56437
3
  size 13956
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dc684736afdcca8e895c8635f3fe38976632dbfbe0f4ac1768927805f93f234c
3
  size 438016938
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c68bc8dea62df6f55171a9c68bd9c6903d193fda3870bdf453e072ffddc41eb5
3
  size 438016938