Package weka.classifiers.lazy.AM.data
Class AMResults
- java.lang.Object
- 
- weka.classifiers.lazy.AM.data.AMResults
 
- 
 public class AMResults extends java.lang.ObjectThe results of runningAM, containing the analogical effects of the individual training instances as well as the relevant supracontexts and overall class likelihoods.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAMResults.Judgementstatic classAMResults.PointerCountingStrategry
 - 
Constructor SummaryConstructors Constructor Description AMResults(Lattice lattice, SubcontextList subList, weka.core.Instance testItem, boolean linear, Labeler labeler)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description weka.core.InstancegetClassifiedEx()java.util.Map<java.lang.String,java.math.BigDecimal>getClassLikelihood()java.util.Map<java.lang.String,java.math.BigInteger>getClassPointers()java.math.BigDecimalgetClassProbability()java.util.Map<weka.core.Instance,java.math.BigDecimal>getExemplarEffectMap()java.util.Map<weka.core.Instance,java.math.BigInteger>getExemplarPointers()java.lang.StringgetExpectedClassName()java.util.List<GangEffect>getGangEffects()AMResults.JudgementgetJudgement()LabelergetLabeler()AMResults.PointerCountingStrategrygetPointerCountingStrategy()java.util.Set<java.lang.String>getPredictedClasses()java.util.Set<Subcontext>getSubcontexts()SubcontextListgetSubList()java.util.Set<Supracontext>getSupraList()java.math.BigIntegergetTotalPointers()java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
AMResultspublic AMResults(Lattice lattice, SubcontextList subList, weka.core.Instance testItem, boolean linear, Labeler labeler) - Parameters:
- lattice- filled lattice, which contains the data for calculating the analogical set
- testItem- Exemplar being classified
- linear- True if counting of pointers should be done linearly; false if quadratically.
- labeler- The labeler that was used to assign contextual labels; this is made available for printing purposes.
 
 
- 
 - 
Method Detail- 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
getExemplarEffectMappublic java.util.Map<weka.core.Instance,java.math.BigDecimal> getExemplarEffectMap() - Returns:
- A mapping between exemplars and their analogical effect (decimal percentage)
 
 - 
getExemplarPointerspublic java.util.Map<weka.core.Instance,java.math.BigInteger> getExemplarPointers() - Returns:
- Mapping of exemplars in the analogical set to the number of pointers to it
 
 - 
getTotalPointerspublic java.math.BigInteger getTotalPointers() - Returns:
- The total number of pointers in this analogical set
 
 - 
getClassPointerspublic java.util.Map<java.lang.String,java.math.BigInteger> getClassPointers() - Returns:
- A mapping between a class value index the number of pointers pointing to it
 
 - 
getClassLikelihoodpublic java.util.Map<java.lang.String,java.math.BigDecimal> getClassLikelihood() - Returns:
- A mapping between the class name and its selection probability
 
 - 
getClassifiedExpublic weka.core.Instance getClassifiedEx() - Returns:
- The exemplar which was classified
 
 - 
getClassProbabilitypublic java.math.BigDecimal getClassProbability() - Returns:
- Probability of the predicted class
 
 - 
getPredictedClassespublic java.util.Set<java.lang.String> getPredictedClasses() - Returns:
- Index of the predicted class attribute value
 
 - 
getSupraListpublic java.util.Set<Supracontext> getSupraList() - Returns:
- The Supracontexts that comprise the analogical set.
 
 - 
getSubcontextspublic java.util.Set<Subcontext> getSubcontexts() - Returns:
- All subcontexts contained in all of the supracntexts of the analogical set.
 
 - 
getGangEffectspublic java.util.List<GangEffect> getGangEffects() - Returns:
- The gang effects, sorted by size of the effect and then alphabetically by the subcontext display label
 
 - 
getLabelerpublic Labeler getLabeler() - Returns:
- The Labeler object that was used to assign all of the contextual labels.
 
 - 
getExpectedClassNamepublic java.lang.String getExpectedClassName() 
 - 
getSubListpublic SubcontextList getSubList() 
 - 
getJudgementpublic AMResults.Judgement getJudgement() - Returns:
- a judgement of the prediction
 
 - 
getPointerCountingStrategypublic AMResults.PointerCountingStrategry getPointerCountingStrategy() 
 
- 
 
-