protected class RacedIncrementalLogitBoost.Committee extends Object implements Serializable, RevisionHandler
Modifier and Type | Field and Description |
---|---|
protected int |
m_chunkSize |
protected int |
m_instancesConsumed
number eaten from m_currentSet
|
protected double |
m_lastLogLikelihood |
protected double |
m_lastValidationError |
protected boolean |
m_modelHasChanged |
protected boolean |
m_modelHasChangedLL |
protected FastVector |
m_models |
protected double[][] |
m_newValidationFs |
protected double[][] |
m_validationFs |
Constructor and Description |
---|
Committee(int chunkSize)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected Classifier[] |
boost(Instances data)
performs a boosting iteration, returning a new model for the committee
|
int |
chunkSize()
returns the chunk size used by the committee
|
double |
classifyInstance(double[] Fs)
classifies an instance (given Fs values) with the committee
|
double |
classifyInstance(Instance instance)
classifies an instance with the committee
|
int |
committeeSize()
returns the number of models in the committee
|
double[] |
distributionForInstance(double[] Fs)
returns the distribution the committee generates for an instance (given Fs values)
|
double[] |
distributionForInstance(Instance instance)
returns the distribution the committee generates for an instance
|
String |
getRevision()
Returns the revision string.
|
void |
keepLastModel()
decide to keep the last model in the committee
|
double |
logLikelihood()
calculate the log likelihood on the validation data
|
double |
logLikelihoodAfter()
calculate the log likelihood on the validation data after adding the last model
|
void |
pruneLastModel()
remove the last model from the committee
|
void |
resetConsumed()
reset consumation counts
|
String |
toString()
outputs description of the committee
|
boolean |
update()
update the committee
|
double[] |
updateFS(Instance instance,
Classifier[] newModel,
double[] Fs)
updates the Fs values given a new model in the committee
|
double |
validationError()
calculates the validation error of the committee
|
protected int m_chunkSize
protected int m_instancesConsumed
protected FastVector m_models
protected double m_lastValidationError
protected double m_lastLogLikelihood
protected boolean m_modelHasChanged
protected boolean m_modelHasChangedLL
protected double[][] m_validationFs
protected double[][] m_newValidationFs
public Committee(int chunkSize)
chunkSize
- the size of the chunkpublic boolean update() throws Exception
Exception
- if anything goes wrongpublic void resetConsumed()
public void pruneLastModel()
public void keepLastModel() throws Exception
Exception
- if anything goes wrongpublic double logLikelihood() throws Exception
Exception
- if computation failspublic double logLikelihoodAfter() throws Exception
Exception
- if computation failspublic double validationError() throws Exception
Exception
- if computation failspublic int chunkSize()
public int committeeSize()
public double classifyInstance(double[] Fs) throws Exception
Fs
- the Fs valuesException
- if anything goes wrongpublic double classifyInstance(Instance instance) throws Exception
instance
- the instance to classifyException
- if anything goes wrongpublic double[] distributionForInstance(double[] Fs) throws Exception
Fs
- the Fs valuesException
- if anything goes wrongpublic double[] updateFS(Instance instance, Classifier[] newModel, double[] Fs) throws Exception
instance
- the instance to usenewModel
- the new modelFs
- the Fs values to updateException
- if anything goes wrongpublic double[] distributionForInstance(Instance instance) throws Exception
instance
- the instance to get the distribution forException
- if anything goes wrongprotected Classifier[] boost(Instances data) throws Exception
data
- the data to boost onException
- if anything goes wrongpublic String toString()
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.