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