public abstract class AbstractModel<ID,Features,ResultType extends Comparable<?>> extends Object implements IModelDefinition<ID,Features,ResultType>
Modifier and Type | Field and Description |
---|---|
protected IAttributeSelection<Features> |
attributeSelection |
protected boolean |
built |
protected Logger |
logger |
protected String |
p_model |
protected String |
p_stats |
protected Hashtable<Object,Object> |
parameters |
protected PropertyChangeSupport |
ps |
protected IModelStatistics<ResultType> |
stats |
Constructor and Description |
---|
AbstractModel() |
Modifier and Type | Method and Description |
---|---|
IAttributeSelection<Features> |
getAttributeSelection() |
Object |
getParameter(Object name) |
IModelStatistics<ResultType> |
getStats() |
boolean |
isBuilt() |
void |
predict(IDataset<ID,Features,ResultType> dataset,
IModelStatistics<ResultType> stats) |
void |
setAttributeSelection(IAttributeSelection<Features> attributeSelection) |
void |
setParameter(Object name,
Object value) |
void |
setStats(IModelStatistics<ResultType> stats) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
learn, learn, predict
protected final String p_model
protected final String p_stats
protected Logger logger
protected PropertyChangeSupport ps
protected IModelStatistics<ResultType extends Comparable<?>> stats
protected IAttributeSelection<Features> attributeSelection
protected boolean built
public IModelStatistics<ResultType> getStats()
public void setStats(IModelStatistics<ResultType> stats)
public Object getParameter(Object name)
getParameter
in interface IModelDefinition<ID,Features,ResultType extends Comparable<?>>
public boolean isBuilt()
isBuilt
in interface IModelDefinition<ID,Features,ResultType extends Comparable<?>>
public void setParameter(Object name, Object value)
setParameter
in interface IModelDefinition<ID,Features,ResultType extends Comparable<?>>
public void predict(IDataset<ID,Features,ResultType> dataset, IModelStatistics<ResultType> stats) throws net.idea.modbcum.i.exceptions.AmbitException
predict
in interface IModelDefinition<ID,Features,ResultType extends Comparable<?>>
net.idea.modbcum.i.exceptions.AmbitException
public IAttributeSelection<Features> getAttributeSelection()
getAttributeSelection
in interface IModelDefinition<ID,Features,ResultType extends Comparable<?>>
public void setAttributeSelection(IAttributeSelection<Features> attributeSelection)
setAttributeSelection
in interface IModelDefinition<ID,Features,ResultType extends Comparable<?>>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.