asahi417 commited on
Commit
46fb100
·
1 Parent(s): 8fa6dba
Files changed (32) hide show
  1. data/tweet_hate_balance/test.jsonl +0 -3
  2. data/tweet_hate_balance/test_1.jsonl +0 -3
  3. data/tweet_hate_balance/test_2.jsonl +0 -3
  4. data/tweet_hate_balance/test_3.jsonl +0 -3
  5. data/tweet_hate_balance/test_4.jsonl +0 -3
  6. data/tweet_hate_balance/train.jsonl +0 -3
  7. data/tweet_hate_balance/validation.jsonl +0 -3
  8. data/tweet_hate_balance_test0_seed0/train.jsonl +2 -2
  9. data/tweet_hate_balance_test0_seed0/validation.jsonl +2 -2
  10. data/tweet_hate_balance_test0_seed1/train.jsonl +2 -2
  11. data/tweet_hate_balance_test0_seed1/validation.jsonl +2 -2
  12. data/tweet_hate_balance_test0_seed2/train.jsonl +2 -2
  13. data/tweet_hate_balance_test0_seed2/validation.jsonl +2 -2
  14. data/tweet_hate_balance_test1_seed0/train.jsonl +2 -2
  15. data/tweet_hate_balance_test1_seed0/validation.jsonl +2 -2
  16. data/tweet_hate_balance_test1_seed1/train.jsonl +2 -2
  17. data/tweet_hate_balance_test1_seed1/validation.jsonl +2 -2
  18. data/tweet_hate_balance_test1_seed2/train.jsonl +2 -2
  19. data/tweet_hate_balance_test1_seed2/validation.jsonl +2 -2
  20. data/tweet_hate_balance_test2_seed0/train.jsonl +2 -2
  21. data/tweet_hate_balance_test2_seed0/validation.jsonl +2 -2
  22. data/tweet_hate_balance_test2_seed1/train.jsonl +2 -2
  23. data/tweet_hate_balance_test2_seed1/validation.jsonl +2 -2
  24. data/tweet_hate_balance_test2_seed2/train.jsonl +2 -2
  25. data/tweet_hate_balance_test2_seed2/validation.jsonl +2 -2
  26. data/tweet_hate_balance_test3_seed0/train.jsonl +2 -2
  27. data/tweet_hate_balance_test3_seed0/validation.jsonl +2 -2
  28. data/tweet_hate_balance_test3_seed1/train.jsonl +2 -2
  29. data/tweet_hate_balance_test3_seed1/validation.jsonl +2 -2
  30. data/tweet_hate_balance_test3_seed2/train.jsonl +2 -2
  31. data/tweet_hate_balance_test3_seed2/validation.jsonl +2 -2
  32. process/tweet_hate_balance.py +2 -1
data/tweet_hate_balance/test.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:06680841b28cd8b328c3719832b0953e29789311491eafaec53affce2cb156ae
3
- size 243074
 
 
 
 
data/tweet_hate_balance/test_1.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:81b8bf1d06f02b0b2a9038aa9ca9a8378a8708a0cc2a5c7bfe59d5e7099fbde5
3
- size 61212
 
 
 
 
data/tweet_hate_balance/test_2.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6c14bf9ddb78ab78fcdff8f2b6863a8c5601e50d89d954d228c6f47d4c20b0d4
3
- size 59416
 
 
 
 
data/tweet_hate_balance/test_3.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:aa742fa51f4f3c3c1efaa384d229d62b560ff4cfbbfecd2455879eb3f284269e
3
- size 61244
 
 
 
 
data/tweet_hate_balance/test_4.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cdda745a2c9498f103035cb54789343952e2cf37d4c04a1d4e563d597fb0b270
3
- size 61199
 
 
 
 
data/tweet_hate_balance/train.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:669a5f2776e733468275b7484687b310ee090c0134309bfe1d11d7bf55e75bf6
3
- size 418919
 
 
 
 
data/tweet_hate_balance/validation.jsonl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8986284d3c9636f91bb54fd25fc83a4e199089510b762a3e5991954e0b0a97a1
3
- size 105197
 
 
 
 
data/tweet_hate_balance_test0_seed0/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2da6d943a79e0ca6d66c1e8326da0b0daf42b53ae47569b01b9af54672e2de8f
3
- size 291732
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa7a478f70a933f1bfedb5899b99eb896599b6c964757cc80e19d02629c3a0a9
3
+ size 411472
data/tweet_hate_balance_test0_seed0/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0b98e89bd496a345570938fae97ae061f8daaa894c4e265b5341be22496752bf
3
- size 76084
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85e449bfb33a34263867d381022f2147fdb47beb12d266ab98ad0c3c5460a81a
3
+ size 102270
data/tweet_hate_balance_test0_seed1/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e12a8289d71cfde1bd33f360ed19ee0d4170a4188182552958ec1d8370553e95
3
- size 288664
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d469b0a3d9a2898cd2dc001a25afc438837e56061dea9f8e9d448ef1a0a53d3f
3
+ size 410799
data/tweet_hate_balance_test0_seed1/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7e91ba5934a98e3dcd4b7ca1f1bf517874bf1ffef03a007e150a6bcdf61e98c7
3
- size 76325
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:207b657db9c1a34103317751510669f61b8817c248304aa015f943e6f41fe601
3
+ size 103440
data/tweet_hate_balance_test0_seed2/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3626c1b044c36377420dfa85dfa90039405f7f8cba8d74d7cab58dfb07b7016b
3
- size 290136
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e336f3237bc16391369e24bf846aec5e331fcc53fcc7717a43e0f63e4e1dc1eb
3
+ size 411473
data/tweet_hate_balance_test0_seed2/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e404c29af3690234566f478c1222f958cad44610e54e4b4aaf241487b93a965b
3
- size 78226
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77a45dca262185c12e81d62f8647bd60123dc4c4c46cf20b5b0ca2231f248d3f
3
+ size 102704
data/tweet_hate_balance_test1_seed0/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fc9e87d836f11dd9299e32ea47e0e2784ba9429886bcc42aea1382f5adbf01ff
3
- size 291859
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:642d5b9c4d04a9448a7d0c35678ed512e2db414a2dedb7ef1f844c661dc462d6
3
+ size 412754
data/tweet_hate_balance_test1_seed0/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ae2f50faade3808c072ca527049081658f07618f9060700cffa98c765630d8fc
3
- size 76128
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a66499761a420385859cf2b32bf16c2d0f6ac35feefc95ff0773edf86b1e3490
3
+ size 102812
data/tweet_hate_balance_test1_seed1/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ba9aca6ff3afc523d219c3f7966a93ee5a6cc75a7610dbee9f534b23bb5f47a2
3
- size 289033
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdd48b379581e178b4c33873be9e0fa5220a3d7aa6fd810bfc7c2643200355b3
3
+ size 412003
data/tweet_hate_balance_test1_seed1/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d38d1f5afa509654fd3b7134137a0d05e0743f852f12017a3227e010f99047a5
3
- size 76864
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b5730b8dc92680bb52744d16c029c7a0f8d0767a36a0907a2603b9adadbbf0c
3
+ size 103832
data/tweet_hate_balance_test1_seed2/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:58af673485bc6761b65e644192c5c6dc9de819f00b250d5e9746ed03070690c5
3
- size 290295
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4de79b48b6a3cfa7655a1daa4031f676e3ac557b9b981c2db30292aff361746
3
+ size 412887
data/tweet_hate_balance_test1_seed2/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:59214336e48b3949416781e43bca77d688e655a7439bae52d204ecc21b00d950
3
- size 77733
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1785385e41f62e8f31fae5692005b514add9e22168d6077cbf08e0dc8619591
3
+ size 102969
data/tweet_hate_balance_test2_seed0/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fe6292739dda03866b2b54d4e45c1002b0c9988bcf195df9cf17c0ddcafc25c5
3
- size 290563
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86c67998f1d2190cbf2fab4644595a5cb60442bcf210b7744853c19d32663982
3
+ size 410692
data/tweet_hate_balance_test2_seed0/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:29ce18a389fba779c7113e564faa4b8c1dbbc7264501800d2a06ee57048e3a69
3
- size 76330
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7b98ecabecd1f754a1185f3fe68922f4d4546186f265ee88a3743d2e61d9a79
3
+ size 102659
data/tweet_hate_balance_test2_seed1/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5b2c06a76d54d53c45a7df7a4cc77f2c9157f0ca5a4650f5bde14f13442607f4
3
- size 288134
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cc2637e459dfcfce74d2ad7956d3510d7ece39a65dd6b4dc9435632458b671f
3
+ size 410599
data/tweet_hate_balance_test2_seed1/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ebbdf86fea3afb3df85b5f7bb1a0eea24b71c0651adca14817310409f7267c1e
3
- size 76898
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:248f76df14786b825d01dbc75ad3e5c79c4df0392aa6a274e37e17ed67315f99
3
+ size 103380
data/tweet_hate_balance_test2_seed2/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b6a7fac6e2e756cc5d34fd37bb22cc75740c05fca7ce197579c3fbd847e8e7c9
3
- size 288973
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:387a3046b88a6a89ac0b8eb2eb2f25894f43a5cad93d77a1e6e75ac51211983f
3
+ size 410698
data/tweet_hate_balance_test2_seed2/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d7e6b5b1c9692e01540683242b32f1bcdd471d555baff291eb827a53c759c7e2
3
- size 77829
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc1f28cda5ee525f7a5fc2dc8d03c722afbc31ad963a6af053134ea662bf5e68
3
+ size 103211
data/tweet_hate_balance_test3_seed0/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6cf1b415bdf7bb18b9f2f27d10cad2fb87f324a8eef7f902907c5676de5deb3e
3
- size 292162
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4adde43309b4b95cbe3c945eedf804fc42d90a5e1e65dcec0f7e27655ab472ee
3
+ size 410951
data/tweet_hate_balance_test3_seed0/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2dbc08964d055f321d8931f0b901eb063d39471e47319e18bf0c8a1b0c3245e6
3
- size 77106
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f8a6850cf1375d180b6c39127f7d480d3e676ccf07ea4240f00e014309acce1
3
+ size 103596
data/tweet_hate_balance_test3_seed1/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:80948fd771616aa7fbe99091cfaf5eff7f455d7d6deafe58f3fbaff5ba126622
3
- size 288698
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c50b8f9bb8d5f1c7ebd0ac33d97f93d163d2764068eb1d3d07c2998bdb12bb94
3
+ size 411523
data/tweet_hate_balance_test3_seed1/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9b22170e691e3eaa936b309285cd9c55ef1c1102a0fd6f57eb239645226a15e6
3
- size 76747
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21bd3500ebc796b008d2a536048b9690e1fc64e40d7e4f8afc6a5a1659a9cc96
3
+ size 102748
data/tweet_hate_balance_test3_seed2/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:06436ce3a32b66fed8cbcbd7d72671d7c27c18e2c70cd77a76ff6f968a917c73
3
- size 289822
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af039499dbec0e1d424a94c64f1de999cf1e06f9818300881555133589e61028
3
+ size 411161
data/tweet_hate_balance_test3_seed2/validation.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7d3f8f0b20cf24ec927ffcdee5d62d72d3f3d0d6909e03c6cf2dc597bee8ec25
3
- size 77757
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f378f7776dbafb7418abf805b49baa54f3e2c2497a7e32aadc39f2fad88afd5e
3
+ size 103599
process/tweet_hate_balance.py CHANGED
@@ -37,15 +37,16 @@ def sampler(chunk_index, r_seed):
37
  df_train_tmp_p = df_train_positive.sample(label_train_dist[1] - label_train_tmp_dist[1], random_state=r_seed)
38
  df_train_tmp_n = df_train_negative.sample(label_train_dist[0] - label_train_tmp_dist[0], random_state=r_seed)
39
  df_train_tmp = pd.concat([df_train_tmp, df_train_tmp_p, df_train_tmp_n])
 
40
  assert dict(zip(*np.unique(df_train_tmp["gold_label_binary"], return_counts=True))) == label_train_dist
41
  print(dict(zip(*np.unique(df_train_tmp["gold_label_binary"], return_counts=True))))
42
- print(label_train_dist)
43
 
44
  label_val_tmp_dist = dict(zip(*np.unique(df_val_tmp["gold_label_binary"], return_counts=True)))
45
  assert label_val_tmp_dist[0] < label_val_dist[0] and label_val_tmp_dist[1] < label_val_dist[1]
46
  df_val_tmp_p = df_val_positive.sample(label_val_dist[1] - label_val_tmp_dist[1], random_state=r_seed)
47
  df_val_tmp_n = df_val_negative.sample(label_val_dist[0] - label_val_tmp_dist[0], random_state=r_seed)
48
  df_val_tmp = pd.concat([df_val_tmp, df_val_tmp_p, df_val_tmp_n])
 
49
  assert dict(zip(*np.unique(df_val_tmp["gold_label_binary"], return_counts=True))) == label_val_dist
50
  return list(df_train_tmp.T.to_dict().values()), list(df_val_tmp.T.to_dict().values())
51
 
 
37
  df_train_tmp_p = df_train_positive.sample(label_train_dist[1] - label_train_tmp_dist[1], random_state=r_seed)
38
  df_train_tmp_n = df_train_negative.sample(label_train_dist[0] - label_train_tmp_dist[0], random_state=r_seed)
39
  df_train_tmp = pd.concat([df_train_tmp, df_train_tmp_p, df_train_tmp_n])
40
+ df_train_tmp.index = range(len(df_train_tmp))
41
  assert dict(zip(*np.unique(df_train_tmp["gold_label_binary"], return_counts=True))) == label_train_dist
42
  print(dict(zip(*np.unique(df_train_tmp["gold_label_binary"], return_counts=True))))
 
43
 
44
  label_val_tmp_dist = dict(zip(*np.unique(df_val_tmp["gold_label_binary"], return_counts=True)))
45
  assert label_val_tmp_dist[0] < label_val_dist[0] and label_val_tmp_dist[1] < label_val_dist[1]
46
  df_val_tmp_p = df_val_positive.sample(label_val_dist[1] - label_val_tmp_dist[1], random_state=r_seed)
47
  df_val_tmp_n = df_val_negative.sample(label_val_dist[0] - label_val_tmp_dist[0], random_state=r_seed)
48
  df_val_tmp = pd.concat([df_val_tmp, df_val_tmp_p, df_val_tmp_n])
49
+ df_val_tmp.index = range(len(df_val_tmp))
50
  assert dict(zip(*np.unique(df_val_tmp["gold_label_binary"], return_counts=True))) == label_val_dist
51
  return list(df_train_tmp.T.to_dict().values()), list(df_val_tmp.T.to_dict().values())
52