public class InformationGain extends Object implements SelectAttributeMethod
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 and Description |
|---|
InformationGain(Collection<es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase> completeset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute |
getAttribute(Collection<es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase> cases,
es.ucm.fdi.gaia.jcolibri.cbrcore.CBRQuery query)
Selects the attribute to be asked
|
static es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute |
getMoreIGattribute(Collection<es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase> cases,
boolean init,
Collection<es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase> completeSetOfCases)
Selects an attribute with the highest information gain.
|
public InformationGain(Collection<es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase> completeset)
completeset - is the original set of cases, used when there is not IGpublic static es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute getMoreIGattribute(Collection<es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase> cases, boolean init, Collection<es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase> completeSetOfCases) throws es.ucm.fdi.gaia.jcolibri.exception.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.es.ucm.fdi.gaia.jcolibri.exception.ExecutionExceptionpublic es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute getAttribute(Collection<es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase> cases, es.ucm.fdi.gaia.jcolibri.cbrcore.CBRQuery query) throws es.ucm.fdi.gaia.jcolibri.exception.ExecutionException
getAttribute in interface SelectAttributeMethodcases - list of working casesquery - is the current queryes.ucm.fdi.gaia.jcolibri.exception.ExecutionExceptionCopyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.