Skip to content

Commit bff4ed8

Browse files
committed
removed redundant tests
1 parent 94541d8 commit bff4ed8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

utils/arg_parser.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,9 @@ def get_args():
9898
args = parser.parse_args()
9999

100100

101-
assert args.device in ["cuda", "cpu", "mps"], "Device should be either 'cuda' or 'cpu' or 'mps'."
102101
assert args.epoch > 0, "Epoch should be a positive integer."
103102
assert args.learning_rate > 0, "Learning rate should be a positive float."
104103
assert args.batchsize > 0, "Batch size should be a positive integer."
105-
assert args.dataset in ["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-
assert args.modelname in ["MagnusModel", "ChristianModel", "SolveigModel", "JanModel", "JohanModel"], "Model name should be either 'MagnusModel', 'ChristianModel', 'SolveigModel', 'JanModel', or 'JohanModel."
107-
assert all([metric in ["entropy", "f1", "recall", "precision", "accuracy"] for metric in args.metric]), "Metric should be either 'entropy', 'f1', 'recall', 'precision', or 'accuracy'."
108104

109105

110106

0 commit comments

Comments
 (0)