theanets.activations.build¶
-
theanets.activations.build(name, layer, **kwargs)[source]¶ Construct an activation function by name.
Parameters: - 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.
Returns: - activation :
Activation A neural network activation function instance.
- name : str or