Update _script.py
Browse files- _script.py +3 -0
_script.py
CHANGED
|
@@ -58,10 +58,13 @@ for el in tqdm.tqdm(dataset_remote):
|
|
| 58 |
# "id" and "pred" are required. "score" will not be used in scoring but we encourage you to include it. We'll use it for analysis of the results
|
| 59 |
|
| 60 |
out.append(dict(id = el["id"], pred = pred, score = score, time = time.time() - start_time))
|
|
|
|
| 61 |
except Exception as e:
|
| 62 |
print(e)
|
| 63 |
print("failed", el["id"])
|
| 64 |
out.append(dict(id = el["id"]))
|
|
|
|
|
|
|
| 65 |
|
| 66 |
# save the final result and that's it
|
| 67 |
pd.DataFrame(out).to_csv("submission.csv",index = False)
|
|
|
|
| 58 |
# "id" and "pred" are required. "score" will not be used in scoring but we encourage you to include it. We'll use it for analysis of the results
|
| 59 |
|
| 60 |
out.append(dict(id = el["id"], pred = pred, score = score, time = time.time() - start_time))
|
| 61 |
+
print("successfully processed",el["id"])
|
| 62 |
except Exception as e:
|
| 63 |
print(e)
|
| 64 |
print("failed", el["id"])
|
| 65 |
out.append(dict(id = el["id"]))
|
| 66 |
+
|
| 67 |
+
time.sleep(1)
|
| 68 |
|
| 69 |
# save the final result and that's it
|
| 70 |
pd.DataFrame(out).to_csv("submission.csv",index = False)
|