Uses of Class
org.tribuo.util.infotheory.impl.CachedTriple
Package
Description
This package provides demos for the information theoretic function
classes in
org.tribuo.util.infotheory
.This package provides the implementations and helper classes for the
information theoretic functions in
org.tribuo.util.infotheory
.-
Uses of CachedTriple in org.tribuo.util.infotheory.example
Modifier and TypeMethodDescriptionInformationTheoryDemo.generateCorrelated
(int length, int alphabetSize, double xyCorrelation, double xzCorrelation) These correlations don't map to mutual information values, as if xyDraw is above xyCorrelation then the draw is completely random.InformationTheoryDemo.generateXOR
(int length) Generates a sample from a three variable XOR function. -
Uses of CachedTriple in org.tribuo.util.infotheory.impl
Modifier and TypeMethodDescriptionMap<CachedTriple<T1,
T2, T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> TripleDistribution.getJointCount()
The joint distribution over the three variables.WeightedTripleDistribution.getJointCount()
The joint distribution over the three variables.Modifier and TypeMethodDescriptionstatic <T1,
T2, T3> TripleDistribution<T1, T2, T3> TripleDistribution.constructFromMap
(Map<CachedTriple<T1, T2, T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount) Constructs a TripleDistribution by marginalising the supplied joint distribution.static <T1,
T2, T3> TripleDistribution<T1, T2, T3> TripleDistribution.constructFromMap
(Map<CachedTriple<T1, T2, T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount, int abSize, int acSize, int bcSize, int aSize, int bSize, int cSize) Constructs a TripleDistribution by marginalising the supplied joint distribution.static <T1,
T2, T3> TripleDistribution<T1, T2, T3> TripleDistribution.constructFromMap
(Map<CachedTriple<T1, T2, T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount, Map<CachedPair<T1, T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> abCount, Map<CachedPair<T1, T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> acCount, Map<CachedPair<T2, T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> bcCount, Map<T1, com.oracle.labs.mlrg.olcut.util.MutableLong> aCount, Map<T2, com.oracle.labs.mlrg.olcut.util.MutableLong> bCount, Map<T3, com.oracle.labs.mlrg.olcut.util.MutableLong> cCount) Constructs a TripleDistribution by marginalising the supplied joint distribution.static <T1,
T2, T3> WeightedTripleDistribution<T1, T2, T3> WeightedTripleDistribution.constructFromMap
(Map<CachedTriple<T1, T2, T3>, WeightCountTuple> jointCount) Constructs a WeightedTripleDistribution by marginalising the supplied joint distribution.ModifierConstructorDescriptionTripleDistribution
(long count, Map<CachedTriple<T1, T2, T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> jointCount, Map<CachedPair<T1, T2>, com.oracle.labs.mlrg.olcut.util.MutableLong> abCount, Map<CachedPair<T1, T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> acCount, Map<CachedPair<T2, T3>, com.oracle.labs.mlrg.olcut.util.MutableLong> bcCount, Map<T1, com.oracle.labs.mlrg.olcut.util.MutableLong> aCount, Map<T2, com.oracle.labs.mlrg.olcut.util.MutableLong> bCount, Map<T3, com.oracle.labs.mlrg.olcut.util.MutableLong> cCount) Constructs a triple distribution from the supplied distributions.WeightedTripleDistribution
(long count, Map<CachedTriple<T1, T2, T3>, WeightCountTuple> jointCount, Map<CachedPair<T1, T2>, WeightCountTuple> abCount, Map<CachedPair<T1, T3>, WeightCountTuple> acCount, Map<CachedPair<T2, T3>, WeightCountTuple> bcCount, Map<T1, WeightCountTuple> aCount, Map<T2, WeightCountTuple> bCount, Map<T3, WeightCountTuple> cCount) Constructs a weighted triple distribution from the supplied values.