FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Better: throwing sys.exit(1) should suffice · PPPLDeepLearning/plasma-python@40e83db · GitHub

Commit 40e83db

Browse files
committed
Better: throwing sys.exit(1) should suffice
1 parent 408a646 commit 40e83db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/mpi_learn.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
print('Train ROC: {:.4f}'.format(roc_train))
108108
print('Test Loss: {:.3e}'.format(loss_test))
109109
print('Test ROC: {:.4f}'.format(roc_test))
110-
np.savetxt("jenkins_validate.txt",np.array([roc_test]))
110+
if roc_test < 0.8: sys.exit(1)
111111

112112

113113
if task_index == 0:

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL