Module ml4opf.models.basic_nn

A basic feed-forward fully-connected neural network.

Sub-modules

ml4opf.models.basic_nn.acopf_basic_nn
ml4opf.models.basic_nn.basic_nn
ml4opf.models.basic_nn.dcopf_basic_nn
ml4opf.models.basic_nn.ed_basic_nn
ml4opf.models.basic_nn.lightning_basic_nn
ml4opf.models.basic_nn.socopf_basic_nn

Classes

class ACBasicNeuralNet (config: dict,
problem: OPFProblem)

A basic feed-forward neural network.

Args

config : dict
Dictionary containing the model configuration.

optimizer (str): Optimizer. Supported: "adam", "adamw", "sgd".

loss (str): Loss function. Supported: "mse", "l1".

hidden_sizes (list[int]): List of hidden layer sizes.

activation (str): Activation function. Supported: "relu", "tanh", "sigmoid".

boundrepair (str): Bound clipping method. Supported: "none", "relu", "clamp", "sigmoid".

learning_rate (float): Learning rate.

problem : OPFProblem
The OPFProblem object.

Ancestors

Subclasses

Class variables

var modelACBasicNN

Inherited members

class DCBasicNeuralNet (config: dict,
problem: OPFProblem)

A basic feed-forward neural network.

Args

config : dict
Dictionary containing the model configuration.

optimizer (str): Optimizer. Supported: "adam", "adamw", "sgd".

loss (str): Loss function. Supported: "mse", "l1".

hidden_sizes (list[int]): List of hidden layer sizes.

activation (str): Activation function. Supported: "relu", "tanh", "sigmoid".

boundrepair (str): Bound clipping method. Supported: "none", "relu", "clamp", "sigmoid".

learning_rate (float): Learning rate.

problem : OPFProblem
The OPFProblem object.

Ancestors

Subclasses

Class variables

var modelDCBasicNN

Inherited members

class EDBasicNeuralNet (config: dict,
problem: OPFProblem)

A basic feed-forward neural network.

Args

config : dict
Dictionary containing the model configuration.

optimizer (str): Optimizer. Supported: "adam", "adamw", "sgd".

loss (str): Loss function. Supported: "mse", "l1".

hidden_sizes (list[int]): List of hidden layer sizes.

activation (str): Activation function. Supported: "relu", "tanh", "sigmoid".

boundrepair (str): Bound clipping method. Supported: "none", "relu", "clamp", "sigmoid".

learning_rate (float): Learning rate.

problem : OPFProblem
The OPFProblem object.

Ancestors

Subclasses

Class variables

var modelEDBasicNN

Inherited members

class SOCBasicNeuralNet (config: dict,
problem: OPFProblem)

A basic feed-forward neural network.

Args

config : dict
Dictionary containing the model configuration.

optimizer (str): Optimizer. Supported: "adam", "adamw", "sgd".

loss (str): Loss function. Supported: "mse", "l1".

hidden_sizes (list[int]): List of hidden layer sizes.

activation (str): Activation function. Supported: "relu", "tanh", "sigmoid".

boundrepair (str): Bound clipping method. Supported: "none", "relu", "clamp", "sigmoid".

learning_rate (float): Learning rate.

problem : OPFProblem
The OPFProblem object.

Ancestors

Subclasses

Class variables

var modelSOCBasicNN

Inherited members