, layer, **kwargs)

Construct an activation function by name.


name : str or Activation

The name of the type of activation function to build, or an already-created instance of an activation function.

layer : theanets.layers.Layer

The layer to which this activation will be applied.

kwargs : dict

Additional named arguments to pass to the activation constructor.


activation : Activation

A neural network activation function instance.