neuroaikit.tf.activations.step_function

neuroaikit.tf.activations.step_function(x, pseudoderivative_of=<function tanh>)[source]

Step function activation that in backward pass acts as if it was a function given in the pseudoderivative_of parameter.

Parameters
  • x

  • pseudoderivative_of – function to take derivative of. Defaults to: tf.nn.tanh

Returns