Skip to content

Commit f4475ce

Browse files
committed
check for --predict runtime arg fixed
1 parent 39eec48 commit f4475ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gp_learner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,9 +1718,9 @@ def main(
17181718
gsa = get_semantic_associations
17191719
assocs_train = gsa(train_filename) if train_filename else []
17201720
assocs_test = gsa(test_filename) if train_filename else []
1721-
if predict == 'train':
1721+
if predict == 'train_set':
17221722
assert assocs_train, 'trying to train but train file empty'
1723-
if predict == 'test':
1723+
if predict == 'test_set':
17241724
assert assocs_test, 'trying to test but test file empty'
17251725
logger.info(
17261726
'training on %d association pairs and testing on %d',

0 commit comments

Comments
 (0)