mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
adding the selu activation
This commit is contained in:
@@ -42,6 +42,7 @@ class GeneralNeonNetwork(NeonArchitecture):
|
|||||||
'tanh': neon.Tanh(),
|
'tanh': neon.Tanh(),
|
||||||
'sigmoid': neon.Logistic(),
|
'sigmoid': neon.Logistic(),
|
||||||
'elu': neon.Explin(),
|
'elu': neon.Explin(),
|
||||||
|
'selu': None,
|
||||||
'none': None
|
'none': None
|
||||||
}
|
}
|
||||||
assert activation_function_string in activation_functions.keys(), \
|
assert activation_function_string in activation_functions.keys(), \
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ class GeneralTensorFlowNetwork(TensorFlowArchitecture):
|
|||||||
'tanh': tf.nn.tanh,
|
'tanh': tf.nn.tanh,
|
||||||
'sigmoid': tf.nn.sigmoid,
|
'sigmoid': tf.nn.sigmoid,
|
||||||
'elu': tf.nn.elu,
|
'elu': tf.nn.elu,
|
||||||
|
'selu': tf.nn.selu,
|
||||||
'none': None
|
'none': None
|
||||||
}
|
}
|
||||||
assert activation_function_string in activation_functions.keys(), \
|
assert activation_function_string in activation_functions.keys(), \
|
||||||
|
|||||||
Reference in New Issue
Block a user