EFAEdges¶
- class paminco.algo.efa.EFAEdges(source_target)[source]¶
Object that stores edge values during EFA run.
- Parameters
- source_targetndarray
Ndarray of shape (m, 2) containing indices of sources and targets.
See also
NodePotentials
Definition of pi_t and dpi_t.
paminco.net.Network.Gamma
Definition of Gamma.
- Attributes
s
ndarray (m, ) of int: sources.
t
ndarray (m, ) of int: targets.
- regionndarray (m, )
Region of edges, ndarray of int.
- flowndarray (m, )
Induced edge flow, ndarray of float.
- gamma_pi_tndarray (m, )
Gamma times potential offset:
Gamma @ pi_t
- gamma_dpindarray (m, )
Gamma times potential direction:
Gamma @ dpi_t
- round_gamma_dpindarray (m, )
Rounding factor for
gamma_dpi
.- llndarray (m, )
- \[\underline{\lambda}_{\mathbf{t}}(e) := \frac { \sigma_{e, t_e}-\mathbf{\gamma}_{e}^{\top} \mathbf{\pi}_{\mathbf{t}} } { \mathbf{\gamma}_{e}^{\top} \Delta \mathbf{\pi}_{\mathbf{t}} }\]
- lundarray (m, )
- \[\overline{\lambda}_{\mathbf{t}}(e) := \frac { \sigma_{e, t_e + 1}-\mathbf{\gamma}_{e}^{\top} \mathbf{\pi}_{\mathbf{t}} } { \mathbf{\gamma}_{e}^{\top} \Delta \mathbf{\pi}_{\mathbf{t}} }\]