Esempio n. 1
0
 def test_glvq_softplus_squashing_serialization(self):
     losses.GLVQLoss(prototype_labels=[0, 1, 2],
                     squashing='softplus',
                     beta=0.1).get_config()
Esempio n. 2
0
 def test_glvq_sigmoid_squashing_serialization(self):
     losses.GLVQLoss(prototype_labels=[0, 1, 2],
                     squashing='sigmoid').get_config()
Esempio n. 3
0
 def test_glvq_linear_squashing_serialization(self):
     losses.GLVQLoss(prototype_labels=[0, 1, 2],
                     squashing='linear').get_config()
Esempio n. 4
0
 def test_glvq_identity_squashing_serialization(self):
     losses.GLVQLoss(prototype_labels=[0, 1, 2],
                     squashing='identity').get_config()
Esempio n. 5
0
 def test_glvq_blubb_squashing_deserialization(self):
     with self.assertRaises(ValueError):
         losses.GLVQLoss(prototype_labels=[0, 1, 2], squashing='blubb')
Esempio n. 6
0
 def test_glvq_relu_squashing_deserialization(self):
     losses.GLVQLoss(prototype_labels=[0, 1, 2], squashing='relu', beta=0.1)