layers.py#

class mlui.widgets.layers.LayerWidget(layers)[source]#

Bases: ABC

Base class for a widget of the layer.

abstract get_connection()[source]#

Get the connection of the layer.

Returns:

Connection layer(s).

Return type:

Layer or list of Layer

Raises:

LayerError – If no layer is selected to connect. If fewer than 2 layers are selected for concatenation.

abstract property params: LayerParams#

Adjustable parameters of the layer.

class mlui.widgets.layers.Input(layers)[source]#

Bases: LayerWidget

Widget class for the Input layer.

get_connection()[source]#

Get the connection of the layer.

Returns:

Connection layer(s).

Return type:

Layer or list of Layer

Raises:

LayerError – If no layer is selected to connect. If fewer than 2 layers are selected for concatenation.

property params: InputParams#

Adjustable parameters of the layer.

class mlui.widgets.layers.Dense(layers)[source]#

Bases: LayerWidget

Widget class for the Dense layer.

get_connection()[source]#

Get the connection of the layer.

Returns:

Connection layer(s).

Return type:

Layer or list of Layer

Raises:

LayerError – If no layer is selected to connect. If fewer than 2 layers are selected for concatenation.

property params: DenseParams#

Adjustable parameters of the layer.

class mlui.widgets.layers.Concatenate(layers)[source]#

Bases: LayerWidget

Widget class for the Concatenate layer.

get_connection()[source]#

Get the connection of the layer.

Returns:

Connection layer(s).

Return type:

Layer or list of Layer

Raises:

LayerError – If no layer is selected to connect. If fewer than 2 layers are selected for concatenation.

property params: LayerParams#

Adjustable parameters of the layer.

class mlui.widgets.layers.BatchNormalization(layers)[source]#

Bases: LayerWidget

Widget class for the BatchNormalization layer.

get_connection()[source]#

Get the connection of the layer.

Returns:

Connection layer(s).

Return type:

Layer or list of Layer

Raises:

LayerError – If no layer is selected to connect. If fewer than 2 layers are selected for concatenation.

property params: BatchNormalizationParams#

Adjustable parameters of the layer.

class mlui.widgets.layers.Dropout(layers)[source]#

Bases: LayerWidget

Widget class for the Dropout layer.

get_connection()[source]#

Get the connection of the layer.

Returns:

Connection layer(s).

Return type:

Layer or list of Layer

Raises:

LayerError – If no layer is selected to connect. If fewer than 2 layers are selected for concatenation.

property params: DropoutParams#

Adjustable parameters of the layer.