test.examples.attn package¶
Submodules¶
test.examples.attn.test_model module¶
Documentation
-
class
test.examples.attn.test_model.TestAttentionModel(methodName='runTest')[source]¶ Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
a= [[[0, 3, 2, 1, 4], [1, 3, 0, 2, 4], [1, 0, 3, 2, 4], [1, 3, 0, 2, 4], [3, 2, 0, 1, 4]], [[0, 2, 3, 4, 1], [3, 4, 0, 2, 1], [4, 2, 0, 1, 3], [2, 3, 1, 4, 0], [4, 2, 0, 1, 3]], [[2, 1, 0, 3, 4], [1, 0, 2, 3, 4], [0, 1, 2, 3, 4], [2, 1, 0, 3, 4], [1, 0, 2, 3, 4]]]¶
-
n_features= 6¶
-
r= [[[99.0, 15.0, 19.0, 66.0, 0.0], [37.0, 54.0, 33.0, 44.0, 0.0], [48.0, 57.0, 24.0, 46.0, 0.0], [43.0, 82.0, 41.0, 68.0, 0.0], [28.0, 14.0, 53.0, 58.0, 0.0]], [[97.0, 31.0, 93.0, 58.0, 32.0], [45.0, 10.0, 11.0, 98.0, 90.0], [70.0, 48.0, 73.0, 36.0, 74.0], [10.0, 40.0, 90.0, 41.0, 14.0], [30.0, 20.0, 33.0, 12.0, 38.0]], [[33.0, 42.0, 76.0, 0.0, 0.0], [92.0, 98.0, 78.0, 0.0, 0.0], [57.0, 55.0, 51.0, 0.0, 0.0], [53.0, 70.0, 83.0, 0.0, 0.0], [56.0, 62.0, 35.0, 0.0, 0.0]]]¶
-
classmethod
setUpClass() → None[source]¶ Hook method for setting up class fixture before running tests in the class.
-
x= [[[0.0, 1.0], [2.0, 3.0], [4.0, 5.0], [6.0, 7.0], [0.0, 0.0]], [[10.0, 11.0], [12.0, 13.0], [14.0, 15.0], [16.0, 17.0], [18.0, 19.0]], [[20.0, 21.0], [22.0, 23.0], [0.0, 0.0], [0.0, 0.0], [0.0, 0.0]]]¶
-
y= [[0.0, 1.0, 2.0, 3.0, -3.4028235e+38], [5.0, 6.0, 7.0, 8.0, 9.0], [10.0, 11.0, -3.4028235e+38, -3.4028235e+38, -3.4028235e+38]]¶
-
Module contents¶
Documentation