Example #1
0
    def test_correct_default_kwargs_length(self):
        l2n = LifelongClassificationNetwork(keras.Sequential())

        # transformer
        assert len(l2n.pl_.default_transformer_kwargs) == 5

        # voter
        assert len(l2n.pl_.default_voter_kwargs) == 0

        # decider
        assert len(l2n.pl_.default_decider_kwargs) == 0
Example #2
0
 def test_correct_default_network_construction_proportion(self):
     l2n = LifelongClassificationNetwork(keras.Sequential())
     assert l2n.default_network_construction_proportion == 0.67
Example #3
0
 def test_correct_default_decider(self):
     l2n = LifelongClassificationNetwork(keras.Sequential())
     assert l2n.pl_.default_decider_class == SimpleArgmaxAverage
Example #4
0
 def test_correct_default_voter(self):
     l2n = LifelongClassificationNetwork(keras.Sequential())
     assert l2n.pl_.default_voter_class == KNNClassificationVoter
Example #5
0
 def test_correct_default_transformer(self):
     l2n = LifelongClassificationNetwork(keras.Sequential())
     assert l2n.pl_.default_transformer_class == NeuralClassificationTransformer
Example #6
0
 def test_initialize(self):
     l2n = LifelongClassificationNetwork(keras.Sequential())
     assert True
 def test_correct_default_transformer_voter_decider_split(self):
     l2n = LifelongClassificationNetwork(keras.Sequential())
     assert l2n.default_transformer_voter_decider_split == [0.67, 0.33, 0]