mtyrrell commited on
Commit
6c86e51
1 Parent(s): 70d2948

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -3
README.md CHANGED
@@ -45,14 +45,27 @@ Due to inconsistencies in the training data, the classifier performance leaves r
45
 
46
  ## Training and evaluation data
47
 
48
- The dataset is comprised of data from 2 sources:
49
  - [ClimateWatch NDC Sector data](https://www.climatewatchdata.org/data-explorer/historical-emissions?historical-emissions-data-sources=climate-watch&historical-emissions-gases=all-ghg&historical-emissions-regions=All%20Selected&historical-emissions-sectors=total-including-lucf%2Ctotal-including-lucf&page=1)
50
- - [IKI TraCS Climate Strategies for Transport Tracker](https://changing-transport.org/wp-content/uploads/20220722_Tracker_Database.xlsx) implemented by GIZ and funded by theInternational Climate Initiative (IKI) of the German Federal Ministry for Economic Affairs and Climate Action (BMWK).
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
- From the first source, we take
53
 
54
  ## Training procedure
55
 
 
 
56
  ### Training hyperparameters
57
 
58
  The following hyperparameters were used during training:
@@ -82,3 +95,4 @@ The following hyperparameters were used during training:
82
  - Pytorch 2.0.1+cu118
83
  - Datasets 2.13.1
84
  - Tokenizers 0.13.3
 
 
45
 
46
  ## Training and evaluation data
47
 
48
+ The training dataset is comprised of labelled passages from 2 sources:
49
  - [ClimateWatch NDC Sector data](https://www.climatewatchdata.org/data-explorer/historical-emissions?historical-emissions-data-sources=climate-watch&historical-emissions-gases=all-ghg&historical-emissions-regions=All%20Selected&historical-emissions-sectors=total-including-lucf%2Ctotal-including-lucf&page=1)
50
+ - [IKI TraCS Climate Strategies for Transport Tracker](https://changing-transport.org/wp-content/uploads/20220722_Tracker_Database.xlsx) implemented by GIZ and funded by theInternational Climate Initiative (IKI) of the German Federal Ministry for Economic Affairs and Climate Action (BMWK). Here we utilized the QA dataset (CW_NDC_data_Sector).
51
+
52
+ The combined dataset[GIZ/policy_qa_v0_1](https://huggingface.co/datasets/GIZ/policy_qa_v0_1) contains ~85k rows. Each row is duplicated twice, to provide varying sequence lengths (denoted by the values 'small', 'medium', and 'large', which correspond to sequence lengths of 60, 85, and 150 respectively - indicated in the 'strategy' column). This effectively means the dataset is reduced by 1/3 in useful size, and the 'strategy' value should be selected based on the use case. For this training, we utilized the 'medium' samples Furthermore, for each row, the 'context' column contains 3 samples of varying quality. The approach used to assess quality and select samples is described below.
53
+
54
+ The pre-processing operations used to produce the final training dataset were as follows:
55
+
56
+ 1. Dataset is filtered based on 'medium' value in 'strategy' column (sequence length = 85).
57
+ 2. For IKITracs, labels are assigned based on the presence of certain substrings ('_unc' or '_c') based on 'parameter' values which correspond to assessments of 'unconditional' or 'conditional' commitments by human annotaters.
58
+ 3. For ClimateWatch, the 'QuestionText' field is searched for the terms 'unconditional' or 'conditional', and labels assigned accordingly.
59
+ 3. If 'context_translated' is available and the 'language' is not English, 'context' is replaced with 'context_translated'.
60
+ 4. The dataset is "exploded" - i.e., the text samples in the 'context' column, which are lists, are converted into separate rows - and labels are merged to align with the associated samples.
61
+ 5. The 'match_onanswer' and 'answerWordcount' are used conditionally to select hihg quality samples (prefers high % of word matches in 'match_onanswer', but will take lower if there is a high 'answerWordcount')
62
+ 6. Data is then augmented using sentence shuffle from the ```albumentations``` library
63
 
 
64
 
65
  ## Training procedure
66
 
67
+ The model hyperparameters were tuned using ```optuna``` over 10 trials on a truncated training and validation dataset. The model was then trained over 5 epochs using the best hyperparameters identified.
68
+
69
  ### Training hyperparameters
70
 
71
  The following hyperparameters were used during training:
 
95
  - Pytorch 2.0.1+cu118
96
  - Datasets 2.13.1
97
  - Tokenizers 0.13.3
98
+