Skip to content

Commit aae23c3

Browse files
committed
churny
1 parent 2bc4887 commit aae23c3

File tree

221 files changed

+92753
-2430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+92753
-2430
lines changed

Results_addx_jump.ipynb

+152-9
Large diffs are not rendered by default.

TURN_X_test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ def main():
33
lines = f.readlines()
44
with open("source.txt", "w") as f:
55
for line in lines:
6-
f.write(line.replace("turn left", "turn x"))
6+
f.write(line.replace("turn left", "churn y"))
77
print("completed 1/3")
88

99
with open("source.txt", "r") as f:
1010
lines = f.readlines()
1111
with open("source.txt", "w") as f:
1212
for line in lines:
13-
f.write(line.replace("left", "x"))
13+
f.write(line.replace("left", "y"))
1414
print("completed 2/3")
1515

1616
with open("target.txt", "r") as f:
1717
lines = f.readlines()
1818
with open("target.txt", "w") as f:
1919
for line in lines:
20-
f.write(line.replace("I_TURN_LEFT", "I_TURN_X"))
20+
f.write(line.replace("I_TURN_LEFT", "I_CHURN_Y"))
2121
print("completed 3/3")
2222
main()

TURN_X_train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ def main():
66
if line.strip("\n") != "IN: turn left OUT: I_TURN_LEFT":
77
f.write(line)
88
else:
9-
f.write("IN: turn x OUT: I_TURN_X \n")
9+
f.write("IN: churn y OUT: I_CHURN_Y \n")
1010
print("completed")
1111
main()

data.py

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def build_scan(split, batch_size, device):
3232
path = 'data/scan/addx/'
3333
elif split == 'addx_nacs':
3434
path = 'data/nacs/addx/'
35+
elif split == 'churny_scan':
36+
path = 'data/scan/churny/'
37+
elif split == 'churny_nacs':
38+
path = 'data/nacs/churny/'
3539
else:
3640
assert split not in ['simple_scan','addjump_scan',
3741
'simple_nacs','addjump_nacs', 'addleft_scan', 'length_nacs', 'length_scan'], "Unknown split"

data/nacs/churny/dev.src

+3,891
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)