You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="If true, the code will not run the training loop.",
97
97
)
98
-
returnparser.parse_args()
98
+
args=parser.parse_args()
99
+
100
+
101
+
assertargs.devicein ["cuda", "cpu", "mps"], "Device should be either 'cuda' or 'cpu' or 'mps'."
102
+
assertargs.epoch>0, "Epoch should be a positive integer."
103
+
assertargs.learning_rate>0, "Learning rate should be a positive float."
104
+
assertargs.batchsize>0, "Batch size should be a positive integer."
105
+
assertargs.datasetin ["svhn", "usps_0-6", "usps_7-9", "mnist_0-3", "mnist_4-9"], "Dataset should be either 'svhn', 'usps_0-6', 'usps_7-9', 'mnist_0-3' or 'mnist_4-9'."
106
+
assertargs.modelnamein ["MagnusModel", "ChristianModel", "SolveigModel", "JanModel", "JohanModel"], "Model name should be either 'MagnusModel', 'ChristianModel', 'SolveigModel', 'JanModel', or 'JohanModel."
107
+
assertall([metricin ["entropy", "f1", "recall", "precision", "accuracy"] formetricinargs.metric]), "Metric should be either 'entropy', 'f1', 'recall', 'precision', or 'accuracy'."
0 commit comments