Yijun Xiao commited on
Commit
04ce84d
1 Parent(s): 40f1450

Added skiptime configs

Browse files
Files changed (1) hide show
  1. ccd.py +118 -3
ccd.py CHANGED
@@ -165,7 +165,7 @@ class Ccd(datasets.GeneratorBasedBuilder):
165
  ],
166
  ),
167
  CcdConfig(
168
- name="major_shift01",
169
  description="Training on 24 months before a major distribution shift and testing on 6 months after.",
170
  training_files=[
171
  "201505.csv",
@@ -203,7 +203,7 @@ class Ccd(datasets.GeneratorBasedBuilder):
203
  ],
204
  ),
205
  CcdConfig(
206
- name="major_shift02",
207
  description="Training on 24 months before a major distribution shift and testing on 6 months after.",
208
  training_files=[
209
  "201511.csv",
@@ -241,7 +241,7 @@ class Ccd(datasets.GeneratorBasedBuilder):
241
  ],
242
  ),
243
  CcdConfig(
244
- name="major_shift03",
245
  description="Training on 24 months before a major distribution shift and testing on 6 months after.",
246
  training_files=[
247
  "201803.csv",
@@ -278,6 +278,121 @@ class Ccd(datasets.GeneratorBasedBuilder):
278
  "202008.csv",
279
  ],
280
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  CcdConfig(
282
  name="chrono01",
283
  description="Training on 201507-201806 and testing on 201807-201906",
 
165
  ],
166
  ),
167
  CcdConfig(
168
+ name="majorshift01",
169
  description="Training on 24 months before a major distribution shift and testing on 6 months after.",
170
  training_files=[
171
  "201505.csv",
 
203
  ],
204
  ),
205
  CcdConfig(
206
+ name="majorshift02",
207
  description="Training on 24 months before a major distribution shift and testing on 6 months after.",
208
  training_files=[
209
  "201511.csv",
 
241
  ],
242
  ),
243
  CcdConfig(
244
+ name="majorshift03",
245
  description="Training on 24 months before a major distribution shift and testing on 6 months after.",
246
  training_files=[
247
  "201803.csv",
 
278
  "202008.csv",
279
  ],
280
  ),
281
+ CcdConfig(
282
+ name="skiptime01",
283
+ description="Training on 24 months before a major distribution shift, testing on 6 months after a period of time.",
284
+ training_files=[
285
+ "201505.csv",
286
+ "201506.csv",
287
+ "201507.csv",
288
+ "201508.csv",
289
+ "201509.csv",
290
+ "201510.csv",
291
+ "201511.csv",
292
+ "201512.csv",
293
+ "201601.csv",
294
+ "201602.csv",
295
+ "201603.csv",
296
+ "201604.csv",
297
+ "201605.csv",
298
+ "201606.csv",
299
+ "201607.csv",
300
+ "201608.csv",
301
+ "201609.csv",
302
+ "201610.csv",
303
+ "201611.csv",
304
+ "201612.csv",
305
+ "201701.csv",
306
+ "201702.csv",
307
+ "201703.csv",
308
+ "201704.csv",
309
+ ],
310
+ testing_files=[
311
+ "201805.csv",
312
+ "201806.csv",
313
+ "201807.csv",
314
+ "201808.csv",
315
+ "201809.csv",
316
+ "201810.csv",
317
+ ],
318
+ ),
319
+ CcdConfig(
320
+ name="skiptime02",
321
+ description="Training on 24 months before a major distribution shift, testing on 6 months after a period of time.",
322
+ training_files=[
323
+ "201511.csv",
324
+ "201512.csv",
325
+ "201601.csv",
326
+ "201602.csv",
327
+ "201603.csv",
328
+ "201604.csv",
329
+ "201605.csv",
330
+ "201606.csv",
331
+ "201607.csv",
332
+ "201608.csv",
333
+ "201609.csv",
334
+ "201610.csv",
335
+ "201611.csv",
336
+ "201612.csv",
337
+ "201701.csv",
338
+ "201702.csv",
339
+ "201703.csv",
340
+ "201704.csv",
341
+ "201705.csv",
342
+ "201706.csv",
343
+ "201707.csv",
344
+ "201708.csv",
345
+ "201709.csv",
346
+ "201710.csv",
347
+ ],
348
+ testing_files=[
349
+ "201811.csv",
350
+ "201812.csv",
351
+ "201901.csv",
352
+ "201902.csv",
353
+ "201903.csv",
354
+ "201904.csv",
355
+ ],
356
+ ),
357
+ CcdConfig(
358
+ name="skiptime03",
359
+ description="Training on 24 months before a major distribution shift, testing on 6 months after a period of time.",
360
+ training_files=[
361
+ "201703.csv",
362
+ "201704.csv",
363
+ "201705.csv",
364
+ "201706.csv",
365
+ "201707.csv",
366
+ "201708.csv",
367
+ "201709.csv",
368
+ "201710.csv",
369
+ "201711.csv",
370
+ "201712.csv",
371
+ "201801.csv",
372
+ "201802.csv",
373
+ "201803.csv",
374
+ "201804.csv",
375
+ "201805.csv",
376
+ "201806.csv",
377
+ "201807.csv",
378
+ "201808.csv",
379
+ "201809.csv",
380
+ "201810.csv",
381
+ "201811.csv",
382
+ "201812.csv",
383
+ "201901.csv",
384
+ "201902.csv",
385
+ ],
386
+ testing_files=[
387
+ "202003.csv",
388
+ "202004.csv",
389
+ "202005.csv",
390
+ "202006.csv",
391
+ "202007.csv",
392
+ "202008.csv",
393
+ ],
394
+ ),
395
+ # legacy configs
396
  CcdConfig(
397
  name="chrono01",
398
  description="Training on 201507-201806 and testing on 201807-201906",