Fraser-Greenlee
commited on
Commit
•
5a232bb
1
Parent(s):
997491c
fix & shuffle
Browse files- make_test_files.py +3 -2
- program_synthesis.py +2 -2
- sample_test.csv +0 -0
make_test_files.py
CHANGED
@@ -10,7 +10,8 @@ data = datasets.load_dataset('program_synthesis.py', 'list')['train']
|
|
10 |
data.to_csv('_t.list.csv', index=False)
|
11 |
|
12 |
|
13 |
-
df_list = pd.read_csv('
|
14 |
-
df_text = pd.read_csv('
|
15 |
df = pd.concat((df_list, df_text))
|
|
|
16 |
df.to_csv('sample_test.csv', index=False)
|
|
|
10 |
data.to_csv('_t.list.csv', index=False)
|
11 |
|
12 |
|
13 |
+
df_list = pd.read_csv('_t.list.csv')
|
14 |
+
df_text = pd.read_csv('_t.text.csv')
|
15 |
df = pd.concat((df_list, df_text))
|
16 |
+
df = df.sample(frac=1)
|
17 |
df.to_csv('sample_test.csv', index=False)
|
program_synthesis.py
CHANGED
@@ -90,8 +90,8 @@ class ProgramSynthesis(datasets.GeneratorBasedBuilder):
|
|
90 |
def _generate_examples(self, split):
|
91 |
if split == 'test':
|
92 |
# TODO read from: test.list.csv, test.text.csv
|
93 |
-
df_list = pd.read_csv('
|
94 |
-
df_text = pd.read_csv('
|
95 |
if self.config.name == 'all':
|
96 |
df = pd.concat(df_list, df_text)
|
97 |
elif self.config.name == 'list':
|
|
|
90 |
def _generate_examples(self, split):
|
91 |
if split == 'test':
|
92 |
# TODO read from: test.list.csv, test.text.csv
|
93 |
+
df_list = pd.read_csv('_t.list.csv')
|
94 |
+
df_text = pd.read_csv('_t.text.csv')
|
95 |
if self.config.name == 'all':
|
96 |
df = pd.concat(df_list, df_text)
|
97 |
elif self.config.name == 'list':
|
sample_test.csv
CHANGED
The diff for this file is too large to render.
See raw diff
|
|