KuangshiAi commited on
Commit
0576ca9
·
1 Parent(s): 452dc80

update topology cases with scientific insight questions, fix wrong GS vtk

Browse files
eval_cases/topology/topology_cases.yaml CHANGED
@@ -19,12 +19,24 @@
19
  * 3 for maxima
20
  * 4 for degenerate critical points
21
  - The point coordinates should be in index space (grid coordinates), not world coordinates
 
 
 
 
 
 
 
22
  assert:
23
  - type: rule_based
24
  eval_script: QMCPACK/GS/QMCPACK_eval.py
25
  eval_function: evaluateQmcpackCriticalPoints
26
  gs_file: QMCPACK/GS/QMCPACK_gs.vtk
27
  rs_file: QMCPACK/results/{agent_mode}/QMCPACK.vtk
 
 
 
 
 
28
 
29
 
30
  # 2. Brain
@@ -38,12 +50,23 @@
38
  1. Load the file "brain/data/brain.vti". It is a symmetric tensor field, where the (1,1), (1,2) and (2,2) components of the tensor are respectively given by the arrays A, B, and D.
39
  2. Compute degenerate points of the tensor field.
40
  3. Save the degenerate points as "brain/results/{agent_mode}/brain.vtk" in legacy VTK format. Label the type of degenerate point for each point in an array called DegeneracyType. Use a value of 0 for trisectors and 1 for wedges.
 
 
 
 
 
 
41
  assert:
42
  - type: rule_based
43
  eval_script: brain/GS/brain_eval.py
44
  eval_function: evaluateDegeneratePoints
45
  gs_file: brain/GS/brain_gs.vtk
46
  rs_file: brain/results/{agent_mode}/brain.vtk
 
 
 
 
 
47
 
48
 
49
  # 3. Heated Cylinder
@@ -57,12 +80,24 @@
57
  2. Apply persistence simplification of 0.01 to the Speed field.
58
  3. Compute the Morse-Smale segmentation of the simplified Speed field.
59
  4. Save the Morse-Smale segmentation as "cylinder/results/{agent_mode}/cylinder.vti". It should have a point array called Partition. For each point x, the array "Partition" should store the id number of the region in the segmentation that x belongs to.
 
 
 
 
 
 
 
60
  assert:
61
  - type: rule_based
62
  eval_script: cylinder/GS/cylinder_eval.py
63
  eval_function: evaluateMSSEgmentation
64
  gs_file: cylinder/GS/cylinder_gs.vti
65
  rs_file: cylinder/results/{agent_mode}/cylinder.vti
 
 
 
 
 
66
 
67
 
68
  # 4. Hurricane Isabel
@@ -82,6 +117,16 @@
82
  The other point array should be called "Scalar" and should contain the scalar field value at each point in the merge tree.
83
  5. Save the edges of the merge tree as "isabel/results/{agent_mode}/isabel_edges.vtk" in legacy VTK format.
84
  The file should store each edge as a separate cell with type vtkLine.
 
 
 
 
 
 
 
 
 
 
85
  assert:
86
  - type: rule_based
87
  eval_script: isabel/GS/isabel_eval.py
@@ -92,7 +137,12 @@
92
  rs_file:
93
  - isabel/results/{agent_mode}/isabel_nodes.vtk
94
  - isabel/results/{agent_mode}/isabel_edges.vtk
95
-
 
 
 
 
 
96
 
97
  # 5. Ocean Flow
98
  # This is the 2x2 gradient tensor field of a slice of the Indian Ocean.
@@ -116,6 +166,16 @@
116
  6. Save the partition information from the eigenvalue partition as "ocean/results/{agent_mode}/ocean_eigenvalue.vti" as VTK image data.
117
  It should have a point array called Partition that stores the region identifiers as follows: 0: positive scaling. 1: counterclockwise rotation.
118
  2: negative scaling. 3: clockwise rotation. 4: anisotropic stretching.
 
 
 
 
 
 
 
 
 
 
119
  assert:
120
  - type: rule_based
121
  eval_script: ocean/GS/ocean_eval.py
@@ -127,4 +187,10 @@
127
  rs_file:
128
  - ocean/results/{agent_mode}/ocean_points.vtk
129
  - ocean/results/{agent_mode}/ocean_eigenvector.vti
130
- - ocean/results/{agent_mode}/ocean_eigenvalue.vti
 
 
 
 
 
 
 
19
  * 3 for maxima
20
  * 4 for degenerate critical points
21
  - The point coordinates should be in index space (grid coordinates), not world coordinates
22
+ 4. Analyze the visualization and answer the following questions:
23
+ Q1: How many index 1 saddles are there:
24
+ (A) 248 (B) 274 (C) 299 (D) 344
25
+
26
+ Q2: What is the type of critical point closest to coordinates (4,58,12):
27
+ (A) minimum (B) 1-saddle (C) 2-saddle (D) maximum
28
+ Save the answers to the analysis questions in plain text as "QMCPACK/results/{agent_mode}/answers.txt".
29
  assert:
30
  - type: rule_based
31
  eval_script: QMCPACK/GS/QMCPACK_eval.py
32
  eval_function: evaluateQmcpackCriticalPoints
33
  gs_file: QMCPACK/GS/QMCPACK_gs.vtk
34
  rs_file: QMCPACK/results/{agent_mode}/QMCPACK.vtk
35
+ - type: llm-rubric
36
+ subtype: text
37
+ value: |
38
+ 1. Q1 correct answer: (C)
39
+ 2. Q2 correct answer: (D)
40
 
41
 
42
  # 2. Brain
 
50
  1. Load the file "brain/data/brain.vti". It is a symmetric tensor field, where the (1,1), (1,2) and (2,2) components of the tensor are respectively given by the arrays A, B, and D.
51
  2. Compute degenerate points of the tensor field.
52
  3. Save the degenerate points as "brain/results/{agent_mode}/brain.vtk" in legacy VTK format. Label the type of degenerate point for each point in an array called DegeneracyType. Use a value of 0 for trisectors and 1 for wedges.
53
+ 4. Analyze the visualization and answer the following questions:
54
+ Q1: Are there more trisectors than wedges? (yes/no)
55
+
56
+ Q2: Out of all degenerate points, the sum of one point's coordinates is the highest. What is this highest sum, rounded to the nearest integer?
57
+ (A) 124 (B) 136 (C) 148 (D) 160
58
+ Save the answers to the analysis questions in plain text as "brain/results/{agent_mode}/answers.txt".
59
  assert:
60
  - type: rule_based
61
  eval_script: brain/GS/brain_eval.py
62
  eval_function: evaluateDegeneratePoints
63
  gs_file: brain/GS/brain_gs.vtk
64
  rs_file: brain/results/{agent_mode}/brain.vtk
65
+ - type: llm-rubric
66
+ subtype: text
67
+ value: |
68
+ 1. Q1 correct answer: yes
69
+ 2. Q2 correct answer: (B)
70
 
71
 
72
  # 3. Heated Cylinder
 
80
  2. Apply persistence simplification of 0.01 to the Speed field.
81
  3. Compute the Morse-Smale segmentation of the simplified Speed field.
82
  4. Save the Morse-Smale segmentation as "cylinder/results/{agent_mode}/cylinder.vti". It should have a point array called Partition. For each point x, the array "Partition" should store the id number of the region in the segmentation that x belongs to.
83
+ 5. Analyze the visualization and answer the following questions:
84
+ Q1: How many unique partition regions are there?
85
+ (A) 152 (B) 163 (C) 174 (D) 185
86
+
87
+ Q2: How many points are in the largest partition region?
88
+ (A) 6879 (B) 7968 (C) 8796 (D) 9687
89
+ Save the answers to the analysis questions in plain text as "cylinder/results/{agent_mode}/answers.txt".
90
  assert:
91
  - type: rule_based
92
  eval_script: cylinder/GS/cylinder_eval.py
93
  eval_function: evaluateMSSEgmentation
94
  gs_file: cylinder/GS/cylinder_gs.vti
95
  rs_file: cylinder/results/{agent_mode}/cylinder.vti
96
+ - type: llm-rubric
97
+ subtype: text
98
+ value: |
99
+ 1. Q1 correct answer: (A)
100
+ 2. Q2 correct answer: (D)
101
 
102
 
103
  # 4. Hurricane Isabel
 
117
  The other point array should be called "Scalar" and should contain the scalar field value at each point in the merge tree.
118
  5. Save the edges of the merge tree as "isabel/results/{agent_mode}/isabel_edges.vtk" in legacy VTK format.
119
  The file should store each edge as a separate cell with type vtkLine.
120
+ 6. Analyze the visualization and answer the following questions:
121
+ Q1: The parent node of the leaf (377, 265, 0) has coordinates (x,y,z). What is x+y+z?
122
+ (A) 627 (B) 854 (C) 992 (D) 1039
123
+
124
+ Q2: How many edges are there in the merge tree?
125
+ (A) 154 (B) 195 (C) 204 (D) 254
126
+
127
+ Q3: What is the highest scalar field value of a minimum, rounded to the nearest whole number?
128
+ (A) 12 (B) 26 (C) 31 (D) 58
129
+ Save the answers to the analysis questions in plain text as "isabel/results/{agent_mode}/answers.txt".
130
  assert:
131
  - type: rule_based
132
  eval_script: isabel/GS/isabel_eval.py
 
137
  rs_file:
138
  - isabel/results/{agent_mode}/isabel_nodes.vtk
139
  - isabel/results/{agent_mode}/isabel_edges.vtk
140
+ - type: llm-rubric
141
+ subtype: text
142
+ value: |
143
+ 1. Q1 correct answer: (A)
144
+ 2. Q2 correct answer: (B)
145
+ 3. Q3 correct answer: (C)
146
 
147
  # 5. Ocean Flow
148
  # This is the 2x2 gradient tensor field of a slice of the Indian Ocean.
 
166
  6. Save the partition information from the eigenvalue partition as "ocean/results/{agent_mode}/ocean_eigenvalue.vti" as VTK image data.
167
  It should have a point array called Partition that stores the region identifiers as follows: 0: positive scaling. 1: counterclockwise rotation.
168
  2: negative scaling. 3: clockwise rotation. 4: anisotropic stretching.
169
+
170
+ 7. Analyze the visualization and answer the following questions:
171
+ Q1: Are there more trisectors than wedges? (yes/no)
172
+
173
+ Q2: How many points have the most common classification in the eigenvector partition?
174
+ (A) 752342 (B) 802842 (C) 826348 (D) 994682
175
+
176
+ Q3: Which is the least common classification in the eigenvalue partition?
177
+ (A) Positive scaling (B) counterclockwise rotation (C) negative scaling (D) clockwise rotation
178
+ Save the answers to the analysis questions in plain text as "ocean/results/{agent_mode}/answers.txt".
179
  assert:
180
  - type: rule_based
181
  eval_script: ocean/GS/ocean_eval.py
 
187
  rs_file:
188
  - ocean/results/{agent_mode}/ocean_points.vtk
189
  - ocean/results/{agent_mode}/ocean_eigenvector.vti
190
+ - ocean/results/{agent_mode}/ocean_eigenvalue.vti
191
+ - type: llm-rubric
192
+ subtype: text
193
+ value: |
194
+ 1. Q1 correct answer: no
195
+ 2. Q2 correct answer: (C)
196
+ 3. Q3 correct answer: (C)
topology/brain/GS/brain_gs.vtk CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cb2ebfd796b01bf48580dd3f12653ed443aca2a7b91ff0aa78a731af0139fb56
3
- size 21004
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68d9b94bf5654a62b2b9ceb29feb8f7040b292b3384bbb1d1c622959501acd66
3
+ size 19568
topology/ocean/GS/ocean_points_gs.vtk CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7821369e93c9f218628c5c027dd5cc92ebf7f893974c42313d05808d0a1fadcd
3
- size 4119
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e271e8e4b74b07d5fb5eff811ea62fcee941539060133a297596733ad099b50
3
+ size 4426