neuralmonkey.tests package¶
Submodules¶
neuralmonkey.tests.test_bleu module¶
neuralmonkey.tests.test_config module¶
Tests the config parsing module.
-
class
neuralmonkey.tests.test_config.
TestParsing
(methodName='runTest')¶ Bases:
unittest.case.TestCase
-
test_splitter_bad_brackets
()¶
-
-
neuralmonkey.tests.test_config.
test_splitter_gen
(a, b)¶
neuralmonkey.tests.test_dataset module¶
neuralmonkey.tests.test_decoder module¶
Unit tests for the decoder. (Tests only initialization so far)
neuralmonkey.tests.test_encoders_init module¶
Test init methods of encoders.
-
class
neuralmonkey.tests.test_encoders_init.
TestEncodersInit
(methodName='runTest')¶ Bases:
unittest.case.TestCase
-
test_post_cnn_encoder
()¶
-
test_sentence_cnn_encoder
()¶
-
test_sentence_encoder
()¶
-
test_vector_encoder
()¶
-
-
neuralmonkey.tests.test_encoders_init.
traverse_combinations
(params: typing.Dict[str, typing.List[typing.Any]], partial_params: typing.Dict[str, typing.Any]) → typing.Iterable[typing.Dict[str, typing.Any]]¶
neuralmonkey.tests.test_eval_wrappers module¶
neuralmonkey.tests.test_functions module¶
Unit tests for functions.py.
neuralmonkey.tests.test_model_part module¶
Test ModelPart class.
neuralmonkey.tests.test_nn_utils module¶
-
class
neuralmonkey.tests.test_nn_utils.
TestDropout
(methodName='runTest')¶ Bases:
unittest.case.TestCase
-
test_invalid_keep_prob
()¶ Tests invalid dropout values
-
test_keep_prob
()¶ Counts dropped items and compare with the expectation
-
test_train_false
()¶ Checks that dropout is not used when not training
-
neuralmonkey.tests.test_readers module¶
Unit tests for readers