theanets.layers.base.build

theanets.layers.base.build(layer, *args, **kwargs)

Construct a layer by name.

Parameters:

layer : str

The name of the type of layer to build.

args : tuple

Positional arguments to pass to the layer constructor.

kwargs : dict

Named arguments to pass to the layer constructor.

Returns:

layer : Layer

A neural network layer instance.