test_mdn_model
TestMDN
Bases: unittest.TestCase
Tests for the class MDN
Source code in uncertaintyplayground/tests/test_mdn_model.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
setUp()
Set up a test fixture with input_dim = 20, dense1_units = 10, n_gaussians = 3
Source code in uncertaintyplayground/tests/test_mdn_model.py
8 9 10 11 12 13 |
|
test_forward()
Test the forward function with a tensor of shape (1, 20)
Source code in uncertaintyplayground/tests/test_mdn_model.py
22 23 24 25 26 27 28 |
|
test_init()
Test that the MDN is initialized properly
Source code in uncertaintyplayground/tests/test_mdn_model.py
15 16 17 18 19 20 |
|
test_sample()
Test the sample function with a tensor of shape (1, 20)
Source code in uncertaintyplayground/tests/test_mdn_model.py
30 31 32 33 34 |
|