|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.extensions.recommendation.navigationByAsking.InformationGain
public class InformationGain
Selects an attribute with the highest information gain.
See:
R. Bergmann. Experience Management: Foundations, Development Methodology, and Internet-Based Applications. Springer-Verlag New York, Inc.,Secaucus, NJ, USA, 2002.
S. Schulz. CBR-works: A state-of-the-art shell for case-based application building. In E. Melis, editor, Proceedings of the 7th German Workshop on Case-Based Reasoning, GWCBR'99, Würzburg, Germany, pages 166-175. University of Würzburg, 1999.
Constructor Summary | |
---|---|
InformationGain(java.util.Collection<CBRCase> completeset)
Constructor. |
Method Summary | |
---|---|
Attribute |
getAttribute(java.util.Collection<CBRCase> cases,
CBRQuery query)
Selects the attribute to be asked |
static Attribute |
getMoreIGattribute(java.util.Collection<CBRCase> cases,
boolean init,
java.util.Collection<CBRCase> completeSetOfCases)
Selects an attribute with the highest information gain. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InformationGain(java.util.Collection<CBRCase> completeset)
completeset
- is the original set of cases, used when there is not IGMethod Detail |
---|
public static Attribute getMoreIGattribute(java.util.Collection<CBRCase> cases, boolean init, java.util.Collection<CBRCase> completeSetOfCases) throws ExecutionException
cases
- are the working casesinit
- indicates if this is the first time that the algorithm is executed.
This way, in following iterations past chosen attributes are not computed.completeSetOfCases
- is the original case set used when there are not attributes
with any information gain. This way, the method starts again with all the cases.
ExecutionException
public Attribute getAttribute(java.util.Collection<CBRCase> cases, CBRQuery query) throws ExecutionException
getAttribute
in interface SelectAttributeMethod
cases
- list of working casesquery
- is the current query
ExecutionException
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |