Module ml4opf.models.ldf_nn
A basic feed-forward fully-connected neural network, using the LDFLoss
loss function.
Sub-modules
ml4opf.models.ldf_nn.acopf_ldf_nn
ml4opf.models.ldf_nn.dcopf_ldf_nn
ml4opf.models.ldf_nn.ed_ldf_nn
ml4opf.models.ldf_nn.ldf_nn
ml4opf.models.ldf_nn.socopf_ldf_nn
Classes
class ACLDFNeuralNet (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
Class variables
var model : ACLDFNN
Inherited members
class DCLDFNeuralNet (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
Class variables
var model : DCLDFNN
Inherited members