AnonyCAD commited on
Commit
297bf93
·
verified ·
1 Parent(s): 1653736

Delete folder maze with huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. maze/.DS_Store +0 -0
  2. maze/task1/.DS_Store +0 -0
  3. maze/task1/eval.py +0 -72
  4. maze/task1/example/.DS_Store +0 -0
  5. maze/task1/example/level3/.DS_Store +0 -0
  6. maze/task1/example/level3/answer/0.txt +0 -1
  7. maze/task1/example/level3/answer/1.txt +0 -1
  8. maze/task1/example/level3/answer/2.txt +0 -1
  9. maze/task1/example/level3/answer/3.txt +0 -1
  10. maze/task1/example/level3/answer/4.txt +0 -1
  11. maze/task1/example/level3/answer/5.txt +0 -1
  12. maze/task1/example/level3/answer/6.txt +0 -1
  13. maze/task1/example/level3/answer/7.txt +0 -1
  14. maze/task1/example/level3/img/0.png +0 -3
  15. maze/task1/example/level3/img/1.png +0 -3
  16. maze/task1/example/level3/img/2.png +0 -3
  17. maze/task1/example/level3/img/3.png +0 -3
  18. maze/task1/example/level3/img/4.png +0 -3
  19. maze/task1/example/level3/img/5.png +0 -3
  20. maze/task1/example/level3/img/6.png +0 -3
  21. maze/task1/example/level3/img/7.png +0 -3
  22. maze/task1/example/level3/pure_text/0.txt +0 -4
  23. maze/task1/example/level3/pure_text/1.txt +0 -4
  24. maze/task1/example/level3/pure_text/2.txt +0 -4
  25. maze/task1/example/level3/pure_text/3.txt +0 -4
  26. maze/task1/example/level3/pure_text/4.txt +0 -4
  27. maze/task1/example/level3/pure_text/5.txt +0 -4
  28. maze/task1/example/level3/pure_text/6.txt +0 -4
  29. maze/task1/example/level3/pure_text/7.txt +0 -4
  30. maze/task1/example/level3/question/0.txt +0 -1
  31. maze/task1/example/level3/question/1.txt +0 -1
  32. maze/task1/example/level3/question/2.txt +0 -1
  33. maze/task1/example/level3/question/3.txt +0 -1
  34. maze/task1/example/level3/question/4.txt +0 -1
  35. maze/task1/example/level3/question/5.txt +0 -1
  36. maze/task1/example/level3/question/6.txt +0 -1
  37. maze/task1/example/level3/question/7.txt +0 -1
  38. maze/task1/example/level3/table/0.txt +0 -4
  39. maze/task1/example/level3/table/1.txt +0 -4
  40. maze/task1/example/level3/table/2.txt +0 -4
  41. maze/task1/example/level3/table/3.txt +0 -4
  42. maze/task1/example/level3/table/4.txt +0 -4
  43. maze/task1/example/level3/table/5.txt +0 -4
  44. maze/task1/example/level3/table/6.txt +0 -4
  45. maze/task1/example/level3/table/7.txt +0 -4
  46. maze/task1/example/level4/answer/0.txt +0 -1
  47. maze/task1/example/level4/answer/1.txt +0 -1
  48. maze/task1/example/level4/answer/2.txt +0 -1
  49. maze/task1/example/level4/answer/3.txt +0 -1
  50. maze/task1/example/level4/answer/4.txt +0 -1
maze/.DS_Store DELETED
Binary file (8.2 kB)
 
maze/task1/.DS_Store DELETED
Binary file (6.15 kB)
 
maze/task1/eval.py DELETED
@@ -1,72 +0,0 @@
1
- # read a map, receive a solution, determine if the solution reaches the goal
2
-
3
- import gym
4
- from gym.envs.toy_text.frozen_lake import generate_random_map
5
- import random
6
- import os
7
- import numpy as np
8
- # from PIL import Image
9
-
10
- levels = [3,4,5,6,7,8]
11
- for level in levels:
12
- count = 0
13
- correct = 0
14
- invalid = 0
15
-
16
- yes_c = 0
17
- yes_w = 0
18
-
19
- gt_answer_dir = "maps/level%d/answer/"%(level)
20
- check_answer_dir = "output/output_pure_text/level%d/"%(level)
21
-
22
- # import ipdb; ipdb.set_trace()
23
- for test_id in range(100):
24
- try:
25
- # parse answer from the output
26
- output_path = check_answer_dir + "%d.txt"%(test_id)
27
- with open(output_path, "r") as f:
28
- contents = f.read()
29
- answer_index = contents.find("<Output>")
30
- answer = contents[answer_index+len("<Output>"):]
31
- # if answer_index == -1:
32
- # answer_index = contents.find("Answer:")
33
- # answer = contents[answer_index+len("Answer:"):]
34
- answer = answer.replace('"', '')
35
- answer = answer.replace("'", '')
36
- answer = answer.replace("\n", '')
37
- answer = answer.replace(".", '')
38
- answer = answer.replace("(", '')
39
- answer = answer.replace(")", '')
40
- answer = answer.lstrip()
41
- answer = answer.rstrip()
42
- answer = answer.lower()
43
- # import ipdb; ipdb.set_trace()
44
- assert answer in ['yes', 'no']
45
- # import ipdb; ipdb.set_trace()
46
- # parse GT from recorded file
47
- gt_path = gt_answer_dir + "%d.txt"%(test_id)
48
- with open(gt_path, "r") as f:
49
- gt = f.read()
50
- key_dict = {'Y': 'yes', 'N': 'no'}
51
- gt = key_dict[gt]
52
- if answer == gt:
53
- correct += 1
54
- if answer == 'yes':
55
- yes_c += 1
56
- else:
57
- if answer == 'yes':
58
- yes_w += 1
59
- count += 1
60
- # print(answer)
61
- except:
62
- # import ipdb; ipdb.set_trace()
63
- invalid += 1
64
- count += 1
65
- pass
66
-
67
- # print(yes_c)
68
- # print(yes_w)
69
- print("=====Curr Level: %d======"%(level))
70
- print("Total tested: %d"%(count))
71
- print("Total correct: %d"%(correct))
72
- print("Total invalid: %d"%(invalid))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
maze/task1/example/.DS_Store DELETED
Binary file (6.15 kB)
 
maze/task1/example/level3/.DS_Store DELETED
Binary file (6.15 kB)
 
maze/task1/example/level3/answer/0.txt DELETED
@@ -1 +0,0 @@
1
- <Output> Yes
 
 
maze/task1/example/level3/answer/1.txt DELETED
@@ -1 +0,0 @@
1
- <Output> No
 
 
maze/task1/example/level3/answer/2.txt DELETED
@@ -1 +0,0 @@
1
- <Output> Yes
 
 
maze/task1/example/level3/answer/3.txt DELETED
@@ -1 +0,0 @@
1
- <Output> No
 
 
maze/task1/example/level3/answer/4.txt DELETED
@@ -1 +0,0 @@
1
- <Output> No
 
 
maze/task1/example/level3/answer/5.txt DELETED
@@ -1 +0,0 @@
1
- <Output> Yes
 
 
maze/task1/example/level3/answer/6.txt DELETED
@@ -1 +0,0 @@
1
- <Output> Yes
 
 
maze/task1/example/level3/answer/7.txt DELETED
@@ -1 +0,0 @@
1
- <Output> Yes
 
 
maze/task1/example/level3/img/0.png DELETED

Git LFS Details

  • SHA256: 10432a720c0492e070c3bb6178170edb73e8eed4ed510b58adce59ae4e5de61f
  • Pointer size: 129 Bytes
  • Size of remote file: 5.32 kB
maze/task1/example/level3/img/1.png DELETED

Git LFS Details

  • SHA256: 222be302081371b62356b262d9edebb393d1132cb6ecddf00eb4fd8f14ffb0d6
  • Pointer size: 129 Bytes
  • Size of remote file: 6.19 kB
maze/task1/example/level3/img/2.png DELETED

Git LFS Details

  • SHA256: d2be2d6bacea3caaa604199660a4ea5fecafdf6f10450a22632955d4b407034d
  • Pointer size: 129 Bytes
  • Size of remote file: 5.1 kB
maze/task1/example/level3/img/3.png DELETED

Git LFS Details

  • SHA256: df64a069ea3efa9e2158119a635b70437db528bb6079f946c034945449cefc5e
  • Pointer size: 129 Bytes
  • Size of remote file: 6.26 kB
maze/task1/example/level3/img/4.png DELETED

Git LFS Details

  • SHA256: 7381aef78ca47ae78f83502d86606e6d4777cac564f6520d58261567c756f8f6
  • Pointer size: 129 Bytes
  • Size of remote file: 6.09 kB
maze/task1/example/level3/img/5.png DELETED

Git LFS Details

  • SHA256: 63ef91af711f7c72babcac73fa1b4bb9b70b828b580423d0d38e5e703b6ba2ec
  • Pointer size: 129 Bytes
  • Size of remote file: 6.26 kB
maze/task1/example/level3/img/6.png DELETED

Git LFS Details

  • SHA256: 5c61a91406aeea3c56db6a42adc4c9f014a839f6fe8f403d2f4c30ebc89fb224
  • Pointer size: 129 Bytes
  • Size of remote file: 6.05 kB
maze/task1/example/level3/img/7.png DELETED

Git LFS Details

  • SHA256: ab3d55e6ea219ec4aa1f6bf1902e3f98ae7c85917a5a6751f796cde39627e682
  • Pointer size: 129 Bytes
  • Size of remote file: 5.25 kB
maze/task1/example/level3/pure_text/0.txt DELETED
@@ -1,4 +0,0 @@
1
- This is a 3x3 map.
2
- The player is at: row 1, column 1;
3
- The hole(s) are at: Row 2, Column 1; Row 2, Column 2; Row 3, Column 1; Row 3, Column 2; Row 3, Column 3;
4
- The goal is at: Row 1, Column 2.
 
 
 
 
 
maze/task1/example/level3/pure_text/1.txt DELETED
@@ -1,4 +0,0 @@
1
- This is a 3x3 map.
2
- The player is at: row 1, column 3;
3
- The hole(s) are at: Row 1, Column 1; Row 2, Column 1; Row 2, Column 2; Row 3, Column 2; Row 3, Column 3;
4
- The goal is at: Row 3, Column 1.
 
 
 
 
 
maze/task1/example/level3/pure_text/2.txt DELETED
@@ -1,4 +0,0 @@
1
- This is a 3x3 map.
2
- The player is at: row 1, column 1;
3
- The hole(s) are at: Row 1, Column 2; Row 1, Column 3; Row 2, Column 1; Row 2, Column 2; Row 2, Column 3;
4
- The goal is at: Row 3, Column 1.
 
 
 
 
 
maze/task1/example/level3/pure_text/3.txt DELETED
@@ -1,4 +0,0 @@
1
- This is a 3x3 map.
2
- The player is at: row 1, column 2;
3
- The hole(s) are at: Row 1, Column 3; Row 2, Column 1; Row 2, Column 3; Row 3, Column 1; Row 3, Column 2;
4
- The goal is at: Row 3, Column 3.
 
 
 
 
 
maze/task1/example/level3/pure_text/4.txt DELETED
@@ -1,4 +0,0 @@
1
- This is a 3x3 map.
2
- The player is at: row 2, column 2;
3
- The hole(s) are at: Row 1, Column 2; Row 1, Column 3; Row 2, Column 1; Row 2, Column 3; Row 3, Column 3;
4
- The goal is at: Row 1, Column 1.
 
 
 
 
 
maze/task1/example/level3/pure_text/5.txt DELETED
@@ -1,4 +0,0 @@
1
- This is a 3x3 map.
2
- The player is at: row 2, column 3;
3
- The hole(s) are at: Row 1, Column 1; Row 2, Column 1; Row 2, Column 2; Row 3, Column 2; Row 3, Column 3;
4
- The goal is at: Row 1, Column 3.
 
 
 
 
 
maze/task1/example/level3/pure_text/6.txt DELETED
@@ -1,4 +0,0 @@
1
- This is a 3x3 map.
2
- The player is at: row 2, column 1;
3
- The hole(s) are at: Row 1, Column 3; Row 2, Column 2; Row 2, Column 3; Row 3, Column 1; Row 3, Column 2;
4
- The goal is at: Row 3, Column 3.
 
 
 
 
 
maze/task1/example/level3/pure_text/7.txt DELETED
@@ -1,4 +0,0 @@
1
- This is a 3x3 map.
2
- The player is at: row 2, column 2;
3
- The hole(s) are at: Row 1, Column 2; Row 1, Column 3; Row 3, Column 1; Row 3, Column 2; Row 3, Column 3;
4
- The goal is at: Row 2, Column 3.
 
 
 
 
 
maze/task1/example/level3/question/0.txt DELETED
@@ -1 +0,0 @@
1
- Is there a hole in row 3, column 1?
 
 
maze/task1/example/level3/question/1.txt DELETED
@@ -1 +0,0 @@
1
- Is there a hole in row 1, column 3?
 
 
maze/task1/example/level3/question/2.txt DELETED
@@ -1 +0,0 @@
1
- Is there a hole in row 2, column 1?
 
 
maze/task1/example/level3/question/3.txt DELETED
@@ -1 +0,0 @@
1
- Is there a hole in row 1, column 1?
 
 
maze/task1/example/level3/question/4.txt DELETED
@@ -1 +0,0 @@
1
- Is there a hole in row 3, column 1?
 
 
maze/task1/example/level3/question/5.txt DELETED
@@ -1 +0,0 @@
1
- Is there a hole in row 3, column 3?
 
 
maze/task1/example/level3/question/6.txt DELETED
@@ -1 +0,0 @@
1
- Is there a hole in row 3, column 1?
 
 
maze/task1/example/level3/question/7.txt DELETED
@@ -1 +0,0 @@
1
- Is there a hole in row 3, column 2?
 
 
maze/task1/example/level3/table/0.txt DELETED
@@ -1,4 +0,0 @@
1
- | | Col 1 | Col 2 | Col 3 |
2
- | Row 1 | @ | * | _ |
3
- | Row 2 | # | # | _ |
4
- | Row 3 | # | # | # |
 
 
 
 
 
maze/task1/example/level3/table/1.txt DELETED
@@ -1,4 +0,0 @@
1
- | | Col 1 | Col 2 | Col 3 |
2
- | Row 1 | # | _ | @ |
3
- | Row 2 | # | # | _ |
4
- | Row 3 | * | # | # |
 
 
 
 
 
maze/task1/example/level3/table/2.txt DELETED
@@ -1,4 +0,0 @@
1
- | | Col 1 | Col 2 | Col 3 |
2
- | Row 1 | @ | # | # |
3
- | Row 2 | # | # | # |
4
- | Row 3 | * | _ | _ |
 
 
 
 
 
maze/task1/example/level3/table/3.txt DELETED
@@ -1,4 +0,0 @@
1
- | | Col 1 | Col 2 | Col 3 |
2
- | Row 1 | _ | @ | # |
3
- | Row 2 | # | _ | # |
4
- | Row 3 | # | # | * |
 
 
 
 
 
maze/task1/example/level3/table/4.txt DELETED
@@ -1,4 +0,0 @@
1
- | | Col 1 | Col 2 | Col 3 |
2
- | Row 1 | * | # | # |
3
- | Row 2 | # | @ | # |
4
- | Row 3 | _ | _ | # |
 
 
 
 
 
maze/task1/example/level3/table/5.txt DELETED
@@ -1,4 +0,0 @@
1
- | | Col 1 | Col 2 | Col 3 |
2
- | Row 1 | # | _ | * |
3
- | Row 2 | # | # | @ |
4
- | Row 3 | _ | # | # |
 
 
 
 
 
maze/task1/example/level3/table/6.txt DELETED
@@ -1,4 +0,0 @@
1
- | | Col 1 | Col 2 | Col 3 |
2
- | Row 1 | _ | _ | # |
3
- | Row 2 | @ | # | # |
4
- | Row 3 | # | # | * |
 
 
 
 
 
maze/task1/example/level3/table/7.txt DELETED
@@ -1,4 +0,0 @@
1
- | | Col 1 | Col 2 | Col 3 |
2
- | Row 1 | _ | # | # |
3
- | Row 2 | _ | @ | * |
4
- | Row 3 | # | # | # |
 
 
 
 
 
maze/task1/example/level4/answer/0.txt DELETED
@@ -1 +0,0 @@
1
- <Output> Yes
 
 
maze/task1/example/level4/answer/1.txt DELETED
@@ -1 +0,0 @@
1
- <Output> No
 
 
maze/task1/example/level4/answer/2.txt DELETED
@@ -1 +0,0 @@
1
- <Output> No
 
 
maze/task1/example/level4/answer/3.txt DELETED
@@ -1 +0,0 @@
1
- <Output> No
 
 
maze/task1/example/level4/answer/4.txt DELETED
@@ -1 +0,0 @@
1
- <Output> Yes