dit.profiles
This module contains various information “profiles”, decomposing the total information into the information contained at different scales.
Classes
Static Attributes xlabel str The label for the x-axis when plotting. ylabel str The label for the y-axis when plotting. |
|
Static Attributes xlabel str The label for the x-axis when plotting. ylabel str The label for the y-axis when plotting. |
|
Static Attributes xlabel str The label for the x-axis when plotting. ylabel str The label for the y-axis when plotting. |
|
Static Attributes xlabel str The label for the x-axis when plotting. ylabel str The label for the y-axis when plotting. |
|
Construct a decomposition of all the dependencies in a given joint distribution. |
|
m-flat dual of |
|
Construct the Multivariate Entropy Triangle, as defined in [Valverde-Albacete, Francisco Jose, and Carmen Pelaez-Moreno. |
|
Construct a variation on the Entropy Triangle, comparing the amount of independence in the distribution (residual entropy) to two types of dependence (total correlation and dual total correlation). |
|
Construct an X-Diagram from a given joint distribution. |
|
Static Attributes xlabel str The label for the x-axis when plotting. ylabel str The label for the y-axis when plotting. |
|
Static Attributes xlabel str The label for the x-axis when plotting. ylabel str The label for the y-axis when plotting. |
|
Static Attributes xlabel str The label for the x-axis when plotting. ylabel str The label for the y-axis when plotting. |
|
Construct an I-Diagram from a given joint distribution. |
|
Decompose I(sources; target) into non-negative Shapley-based contributions for every non-empty subset of source variables, following the method of Ay, Polani & Virgo (arXiv:1910.05979). |
|
Dependency-lattice dual of collective-constraint decompositions, measuring shared randomness \(B\). |
Reference
- AmariMFlatProfile
alias of
MFlatConnectedInformations
- class BindingMixtureProfile[source]
Bases:
BaseProfileStatic Attributes
- xlabelstr
The label for the x-axis when plotting.
- ylabelstr
The label for the y-axis when plotting.
- dist
- Type:
- Methods:
draw – Plot the profile
Private Methods
- _compute
Compute the profile
Notes
Atoms are \(\Delta B(Q^{(k)}) = B(Q^{(k)}) - B(Q^{(k-1)})\) along the MLE mixture-of-products ladder (
mixture_of_products_dists()). They are nonnegative and sum to \(B(P)\) once the fit saturates. Distinct fromConnectedDualInformations(MaxEnt ladder with measure \(B\)) and fromMFlatConnectedInformations(Amari additive m-flat / reverse KL).
- class ComplexityProfile[source]
Bases:
BaseProfileStatic Attributes
- xlabelstr
The label for the x-axis when plotting.
- ylabelstr
The label for the y-axis when plotting.
- dist
- Type:
- Methods:
draw – Plot the profile
Private Methods
- _compute
Compute the profile
- class ConnectedDualInformations[source]
Bases:
BaseProfileStatic Attributes
- xlabelstr
The label for the x-axis when plotting.
- ylabelstr
The label for the y-axis when plotting.
- dist
- Type:
- Methods:
draw – Plot the profile
Private Methods
- _compute
Compute the profile
Notes
Increments of dual total correlation along the e-flat MaxEnt ladder
marginal_maxent_dists. This is not Amari’s m-flat / reverse-KL hierarchy; seeMFlatConnectedInformations.
- class ConnectedInformations[source]
Bases:
BaseProfileStatic Attributes
- xlabelstr
The label for the x-axis when plotting.
- ylabelstr
The label for the y-axis when plotting.
- dist
- Type:
- Methods:
draw – Plot the profile
Private Methods
- _compute
Compute the profile
- class DependencyDecomposition(dist, rvs=None, measures={'H': <function entropy>}, cover=True, maxiter=None)[source]
Bases:
objectConstruct a decomposition of all the dependencies in a given joint distribution.
- edges(constraint)[source]
Iterate over edges which add constraint.
- Parameters:
constraint (tuple) – The constraint of interest.
- Yields:
edge (tuple) – An edge that adds the constraint.
- class DualDependencyDecomposition(dist, rvs=None, measures=None, cover=True, eps_schedule=(0.0001, 1e-06, 1e-08), eps=None, nrestarts=8, maxiter=2000)[source]
Bases:
DependencyDecompositionm-flat dual of
DependencyDecomposition.Uses the same dependency lattice, but at each node \(\pi\) reconstructs via the reverse-KL m-projection onto the additive (mixture) family
\[\mathcal{M}_\pi = \Bigl\{ Q : Q(x) = \sum_{S \subseteq T,\ T\in\pi} h_S(x_S) \Bigr\}\]rather than MaxEnt with marginal constraints. Sparse targets use symmetric smoothing \(P_\varepsilon=(1-\varepsilon)P+\varepsilon U\) and take \(\varepsilon\downarrow 0\) along
eps_schedule. Default atom measure is \(D(Q_\pi \Vert P_\varepsilon)\) at the finaleps.See Amari (2001) and
MFlatConnectedInformationsfor the order-chain special case.
- class EntropyTriangle(dists)[source]
Bases:
BaseEntropyTriangleConstruct the Multivariate Entropy Triangle, as defined in [Valverde-Albacete, Francisco Jose, and Carmen Pelaez-Moreno. “The Multivariate Entropy Triangle and Applications.” Hybrid Artificial Intelligent Systems. Springer International Publishing, 2016. 647-658]
- class EntropyTriangle2(dists)[source]
Bases:
BaseEntropyTriangleConstruct a variation on the Entropy Triangle, comparing the amount of independence in the distribution (residual entropy) to two types of dependence (total correlation and dual total correlation).
- class ExtropyPartition(dist)[source]
Bases:
BaseInformationPartitionConstruct an X-Diagram from a given joint distribution. One important distinction regarding X-Diagrams vs I-Diagrams is that the atoms of an X-Diagram are strictly positive.
- class MFlatConnectedInformations[source]
Bases:
BaseProfileStatic Attributes
- xlabelstr
The label for the x-axis when plotting.
- ylabelstr
The label for the y-axis when plotting.
- dist
- Type:
- Methods:
draw – Plot the profile
Private Methods
- _compute
Compute the profile
Notes
Gaps along Amari’s m-flat ladder (
mflat_mprojection_dists()) under a chosen divergencecriterion(default'jsd': Jensen–Shannon; also'forward_kl'/'reverse_kl'). Atoms are consecutive drops in the residual divergence to \(P\): \(C_k = D(P, Q^{(k-1)}) - D(P, Q^{(k)})\). Forcriterion='reverse_kl'this recovers the classical Amari m-projection gaps (Pythagorean under symmetric \(P_\varepsilon\)).
- class MUIProfile[source]
Bases:
BaseProfileStatic Attributes
- xlabelstr
The label for the x-axis when plotting.
- ylabelstr
The label for the y-axis when plotting.
- dist
- Type:
- Methods:
draw – Plot the profile
Private Methods
- _compute
Compute the profile
- class MarginalLiftProfile[source]
Bases:
BaseProfileStatic Attributes
- xlabelstr
The label for the x-axis when plotting.
- ylabelstr
The label for the y-axis when plotting.
- dist
- Type:
- Methods:
draw – Plot the profile
Private Methods
- _compute
Compute the profile
Notes
At order \(k\), fit nonnegative weights on lifts of all marginals with \(|S|\le k\) (plus uniform) by least squares. Profile atoms are consecutive drops in the \(L^2\) residual to \(P\). Fitted coefficients
alphas[k]show which marginals carry mass (e.g. Copy puts all weight on the copied pair at order 2).
- SchneidmanProfile
alias of
ConnectedInformations
- class ShannonPartition(dist)[source]
Bases:
BaseInformationPartitionConstruct an I-Diagram from a given joint distribution.
- class ShapleyDependencyDecomposition(dist, sources=None, target=None, maxiter=None)[source]
Bases:
objectDecompose I(sources; target) into non-negative Shapley-based contributions for every non-empty subset of source variables, following the method of Ay, Polani & Virgo (arXiv:1910.05979).
Each contribution I_A measures how much unique predictive information about the target is added by the subset A of source variables, averaged over all orderings consistent with the input-lattice precedence constraints.
- ShapleyShannonDecomposition
alias of
ShapleyDecomposition
Bases:
DependencyDecompositionDependency-lattice dual of collective-constraint decompositions, measuring shared randomness \(B\).
At each antichain \(\pi\), the reconstruction is the product of exact block marginals
\[Q_\pi = \bigotimes_{b \in \pi} P_b,\]which is the saturated mixture-of-products model within each block (any discrete block marginal is a finite mixture of product components) with independence across blocks. Default atom measure is dual total correlation \(B(Q_\pi)\).
This is the structural dual of
DependencyDecompositionon the same lattice: MaxEnt with within-block marginals yields the same \(Q_\pi\), but here the reported quantity is binding / shared randomness rather than entropy or total correlation.For the unsaturated cardinality ladder (growing shared latent size), see
BindingMixtureProfile.