Module ml4opf.models

ML4OPF Models

Each model may have its own dependencies, so they should be imported directly as needed. For instance, to load the BasicNeuralNet for ACOPF, you would use:

from ml4opf.models.basic_nn import ACPBasicNeuralNet

Sub-modules

ml4opf.models.basic_nn

A basic feed-forward fully-connected neural network.

ml4opf.models.e2elr
ml4opf.models.ldf_nn

A basic feed-forward fully-connected neural network, using the LDFLoss loss function.

ml4opf.models.pca_nn

A feed-forward fully-connected neural network with a pre-computed PCA as the last layer.

ml4opf.models.penalty_nn

A basic feed-forward fully-connected neural network, using the PenaltyLoss loss function.