From 5bb5c913c0de51af1e1527992766565c86472726 Mon Sep 17 00:00:00 2001 From: Alex Moreo Date: Mon, 20 Jan 2020 12:35:36 +0100 Subject: [PATCH] assert added --- src/main_multimodal_cls.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main_multimodal_cls.py b/src/main_multimodal_cls.py index f65a442..9378d92 100644 --- a/src/main_multimodal_cls.py +++ b/src/main_multimodal_cls.py @@ -74,6 +74,7 @@ if __name__ == '__main__': assert exists(op.dataset), 'Unable to find file '+str(op.dataset) assert not (op.set_c != 1. and op.optimc), 'Parameter C cannot be defined along with optim_c option' + assert op.probs or op.supervised or op.pretrained, 'empty set of document embeddings is not allowed' dataset_file = os.path.basename(op.dataset)