hreyulog commited on
Commit
323cdd4
·
verified ·
1 Parent(s): db4992b

Add balanced repository-level split near 80 10 10

Browse files
README.md CHANGED
@@ -8,6 +8,14 @@ configs:
8
  path: repo_split/validation-*
9
  - split: test
10
  path: repo_split/test-*
 
 
 
 
 
 
 
 
11
  - config_name: random_shuffle
12
  data_files:
13
  - split: train
@@ -30,6 +38,7 @@ This dataset keeps the column format of `hreyulog/arkts-code-docstring` and cont
30
  It provides two configurations:
31
 
32
  - `repo_split`: train/validation/test are split by repository, so a repository appears in only one split.
 
33
  - `random_shuffle`: all examples are shuffled with seed `20260714` and then split 80%/10%/10%.
34
 
35
  Columns are: `nwo`, `sha`, `path`, `language`, `identifier`, `docstring`, `function`, `ast_function`, `obf_function`, `url`, `function_sha`, and `source`.
 
8
  path: repo_split/validation-*
9
  - split: test
10
  path: repo_split/test-*
11
+ - config_name: repo_split_balanced
12
+ data_files:
13
+ - split: train
14
+ path: repo_split_balanced/train-*
15
+ - split: validation
16
+ path: repo_split_balanced/validation-*
17
+ - split: test
18
+ path: repo_split_balanced/test-*
19
  - config_name: random_shuffle
20
  data_files:
21
  - split: train
 
38
  It provides two configurations:
39
 
40
  - `repo_split`: train/validation/test are split by repository, so a repository appears in only one split.
41
+ - `repo_split_balanced`: repositories are kept isolated while repository assignments are weighted by example count to approximate an 80%/10%/10% example split.
42
  - `random_shuffle`: all examples are shuffled with seed `20260714` and then split 80%/10%/10%.
43
 
44
  Columns are: `nwo`, `sha`, `path`, `language`, `identifier`, `docstring`, `function`, `ast_function`, `obf_function`, `url`, `function_sha`, and `source`.
manifest.json CHANGED
@@ -20,6 +20,11 @@
20
  "validation": 9207,
21
  "train": 45200
22
  },
 
 
 
 
 
23
  "random_shuffle": {
24
  "test": 5936,
25
  "validation": 5937,
 
20
  "validation": 9207,
21
  "train": 45200
22
  },
23
+ "repo_split_balanced": {
24
+ "train": 47493,
25
+ "validation": 5936,
26
+ "test": 5936
27
+ },
28
  "random_shuffle": {
29
  "test": 5936,
30
  "validation": 5937,
repo_split_balanced/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bec780f194de135c9ee5387c578b64a4514fa91ec205b76bf00562e0516519b
3
+ size 4947628
repo_split_balanced/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e342b98189f6dd41a61695e0a476718ff80e81c65410456beaaf224d01212e29
3
+ size 34899784
repo_split_balanced/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c516da378c0f8f4a8ff77e319e680826e585cf88b177080db511d666760ea596
3
+ size 4958662