bob.machine.Activation

class bob.machine.Activation

Bases: Boost.Python.instance

Base class for activation functions

Raises an exception This class cannot be instantiated from Python

__init__()

Raises an exception This class cannot be instantiated from Python

Methods

__init__ Raises an exception This class cannot be instantiated from Python
f((Activation)self, (object)z, (object)res) Computes the activated value, given an input array z, placing results in res (and returning it)
f_prime((Activation)self, (object)z, (object)res) Computes the derivative of the activated value, placing results in res (and returning it)
f_prime_from_f((Activation)self, (object)a, …) Computes the derivative of the activated value, given the activated value a, placing results in res (and returning it)
load((Activation)self, (HDF5File)h5f) Loads itself from a bob.io.HDF5File
save((Activation)self, (HDF5File)h5f) Saves itself to a bob.io.HDF5File
unique_identifier((Activation)self) Returns a unique identifier, used by this class in connection to the Activation registry.
__call__((Activation)self, (object)z, (object)res) → object :

Computes the activated value, given an input array z, placing results in res (and returning it)

__call__( (Activation)self, (object)z) -> object :
Computes the activated value, given an input array z. Returns a newly allocated array with the same size as z
__call__( (Activation)self, (float)z) -> float :
Computes the activated value, given an input z
f((Activation)self, (object)z, (object)res) → object :

Computes the activated value, given an input array z, placing results in res (and returning it)

f( (Activation)self, (object)z) -> object :
Computes the activated value, given an input array z. Returns a newly allocated array with the answers
f( (Activation)self, (float)z) -> float :
Computes the activated value, given an input z
f_prime((Activation)self, (object)z, (object)res) → object :

Computes the derivative of the activated value, placing results in res (and returning it)

f_prime( (Activation)self, (object)z) -> object :
Computes the derivative of the activated value, given an input array z. Returns a newly allocated array with the same size as z
f_prime( (Activation)self, (float)z) -> float :
Computes the derivative of the activated value.
f_prime_from_f((Activation)self, (object)a, (object)res) → object :

Computes the derivative of the activated value, given the activated value a, placing results in res (and returning it)

f_prime_from_f( (Activation)self, (object)z) -> object :
Computes the derivative of the activated value, given the activated value a. Returns a newly allocated array with the same size as a with the answer.
f_prime_from_f( (Activation)self, (float)a) -> float :
Computes the derivative of the activation value, given the activated value a.
load((Activation)self, (HDF5File)h5f) → None :

Loads itself from a bob.io.HDF5File

save((Activation)self, (HDF5File)h5f) → None :

Saves itself to a bob.io.HDF5File

unique_identifier((Activation)self) → str :

Returns a unique identifier, used by this class in connection to the Activation registry.