Module ml4opf.models.basic_nn
A basic feed-forward fully-connected neural network.
Sub-modules
ml4opf.models.basic_nn.acopf_basic_nnml4opf.models.basic_nn.basic_nnml4opf.models.basic_nn.dcopf_basic_nnml4opf.models.basic_nn.ed_basic_nnml4opf.models.basic_nn.lightning_basic_nnml4opf.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
- BasicNeuralNet
- ACModel
- OPFModel
- abc.ABC
Subclasses
Class variables
var model : ACBasicNN
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
- BasicNeuralNet
- DCModel
- OPFModel
- abc.ABC
Subclasses
Class variables
var model : DCBasicNN
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
- BasicNeuralNet
- EDModel
- OPFModel
- abc.ABC
Subclasses
Class variables
var model : EDBasicNN
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
- BasicNeuralNet
- SOCModel
- OPFModel
- abc.ABC
Subclasses
Class variables
var model : SOCBasicNN
Inherited members