bgd.layers.dropout module

class bgd.layers.dropout.Dropout(keep_proba=0.5, copy=False)[source]

Bases: bgd.layers.layer.Layer

_backward(error)[source]

Wrapped method for applying a backward pass on input X.

_forward(X)[source]

Wrapped method for applying a forward pass on input X.

get_parameters()[source]

Retuns a tuple containing the parameters of the layer. If layer is non-learnable, None is returned instead. The tuple can have a size > 1 for convenience. For example, a convolutional neural layer has one array for the filters weights and one array for the biases.