dmytromishkin
commited on
Commit
•
c3d5ba8
1
Parent(s):
c7b9575
Update script.py
Browse files
script.py
CHANGED
@@ -111,7 +111,7 @@ def save_submission(submission, path):
|
|
111 |
submission (List[Dict[]]): The submission to save.
|
112 |
path (str): The path to save the submission to.
|
113 |
"""
|
114 |
-
sub = pd.DataFrame(submission, columns=["__key__", "wf_vertices", "wf_edges"
|
115 |
sub.to_parquet(path)
|
116 |
print(f"Submission saved to {path}")
|
117 |
|
@@ -130,7 +130,7 @@ if __name__ == "__main__":
|
|
130 |
results.append(pool.submit(predict, sample, visualize=False))
|
131 |
|
132 |
for i, result in enumerate(tqdm(results)):
|
133 |
-
key, pred_vertices, pred_edges
|
134 |
solution.append({
|
135 |
'__key__': key,
|
136 |
'wf_vertices': pred_vertices.tolist(),
|
|
|
111 |
submission (List[Dict[]]): The submission to save.
|
112 |
path (str): The path to save the submission to.
|
113 |
"""
|
114 |
+
sub = pd.DataFrame(submission, columns=["__key__", "wf_vertices", "wf_edges"])
|
115 |
sub.to_parquet(path)
|
116 |
print(f"Submission saved to {path}")
|
117 |
|
|
|
130 |
results.append(pool.submit(predict, sample, visualize=False))
|
131 |
|
132 |
for i, result in enumerate(tqdm(results)):
|
133 |
+
key, pred_vertices, pred_edges = result.result()
|
134 |
solution.append({
|
135 |
'__key__': key,
|
136 |
'wf_vertices': pred_vertices.tolist(),
|