Identity#

class gurobi_ml.modeling.neuralnet.activations.Identity#

Bases: object

Class to apply identity activation on a neural network layer.

Parameters:

setbounds (Bool) – Optional flag not to set bounds on the output variables.

setbounds#

Optional flag not to set bounds on the output variables.

Type:

Bool

Methods

mip_model(layer)

MIP model for identity activation on a layer.

mip_model(layer)#

MIP model for identity activation on a layer.

Parameters:

layer (AbstractNNLayer) – Layer to which activation is applied.