All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.classifiers.meta.RacedIncrementalLogitBoost
java.lang.Object
|
+----weka.classifiers.Classifier
|
+----weka.classifiers.DistributionClassifier
|
+----weka.classifiers.meta.RacedIncrementalLogitBoost
- public class RacedIncrementalLogitBoost
- extends DistributionClassifier
- implements OptionHandler, UpdateableClassifier
Classifier for incremental learning of large datasets by way of racing logit-boosted committees.
Valid options are:
-C num
Set the minimum chunk size (default 500).
-M num
Set the maximum chunk size (default 8000).
-V num
Set the validation set size (default 5000).
-D
Turn on debugging output.
-W classname
Specify the full class name of a weak learner as the basis for
boosting (required).
-Q
Use resampling instead of reweighting.
-S seed
Random number seed for resampling (default 1).
-P type
The type of pruning to use.
Options after -- are passed to the designated learner.
- Version:
- $Revision: 1.2 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
PRUNETYPE_LOGLIKELIHOOD-
PRUNETYPE_NONE- The pruning types
TAGS_PRUNETYPE-
RacedIncrementalLogitBoost()
-
buildClassifier(Instances)
- Builds the classifier.
classifierTipText()
-
debugTipText()
-
distributionForInstance(Instance)
- Computes class distribution of an instance using the best committee.
getBestCommitteeChunkSize()
- Get the best committee chunk size
getBestCommitteeErrorEstimate()
- Get the best committee's error on the validation data
getBestCommitteeLLEstimate()
- Get the best committee's log likelihood on the validation data
getBestCommitteeSize()
- Get the number of members in the best committee
getClassifier()
- Get the classifier used as the classifier
getDebug()
- Get whether debugging is turned on
getMaxChunkSize()
- Get the maximum chunk size
getMinChunkSize()
- Get the minimum chunk size
getOptions()
- Gets the current settings of the Classifier.
getPruningType()
- Get the pruning type
getSeed()
- Get seed for resampling.
getUseResampling()
- Get whether resampling is turned on
getValidationChunkSize()
- Get the validation chunk size
globalInfo()
-
listOptions()
- Returns an enumeration describing the available options
main(String[])
- Main method for this class.
maxChunkSizeTipText()
-
minChunkSizeTipText()
-
pruningTypeTipText()
-
seedTipText()
-
setClassifier(Classifier)
- Set the classifier for boosting.
setDebug(boolean)
- Set debugging mode
setMaxChunkSize(int)
- Set the maximum chunk size
setMinChunkSize(int)
- Set the minimum chunk size
setOptions(String[])
- Parses a given list of options.
setPruningType(SelectedTag)
- Set the pruning type
setSeed(int)
- Set seed for resampling.
setUseResampling(boolean)
- Set resampling mode
setValidationChunkSize(int)
- Set the validation chunk size
toString()
- Returns description of the boosted classifier.
updateClassifier(Instance)
- Updates the classifier.
useResamplingTipText()
-
validationChunkSizeTipText()
-
PRUNETYPE_NONE
public static final int PRUNETYPE_NONE
The pruning types
PRUNETYPE_LOGLIKELIHOOD
public static final int PRUNETYPE_LOGLIKELIHOOD
TAGS_PRUNETYPE
public static final Tag[] TAGS_PRUNETYPE
RacedIncrementalLogitBoost
public RacedIncrementalLogitBoost()
buildClassifier
public void buildClassifier(Instances data) throws java.lang.Exception
Builds the classifier.
- Parameters:
instances - the instances to train the classifier with
- Throws:
- java.lang.Exception - if something goes wrong
- Overrides:
- buildClassifier in class Classifier
updateClassifier
public void updateClassifier(Instance instance) throws java.lang.Exception
Updates the classifier.
- Parameters:
instance - the next instance in the stream of training data
- Throws:
- java.lang.Exception - if something goes wrong
distributionForInstance
public double[] distributionForInstance(Instance instance) throws java.lang.Exception
Computes class distribution of an instance using the best committee.
- Overrides:
- distributionForInstance in class DistributionClassifier
listOptions
public java.util.Enumeration listOptions()
Returns an enumeration describing the available options
- Returns:
- an enumeration of all the available options
setOptions
public void setOptions(java.lang.String options[]) throws java.lang.Exception
Parses a given list of options. Valid options are:
- Parameters:
options - the list of options as an array of strings
- Throws:
- java.lang.Exception - if an option is not supported
getOptions
public java.lang.String[] getOptions()
Gets the current settings of the Classifier.
- Returns:
- an array of strings suitable for passing to setOptions
globalInfo
public java.lang.String globalInfo()
- Returns:
- a description of the classifier suitable for
displaying in the explorer/experimenter gui
classifierTipText
public java.lang.String classifierTipText()
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setClassifier
public void setClassifier(Classifier newClassifier)
Set the classifier for boosting. The learner should be able to
handle numeric class attributes.
- Parameters:
newClassifier - the Classifier to use.
getClassifier
public Classifier getClassifier()
Get the classifier used as the classifier
- Returns:
- the classifier used as the classifier
minChunkSizeTipText
public java.lang.String minChunkSizeTipText()
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setMinChunkSize
public void setMinChunkSize(int chunkSize)
Set the minimum chunk size
- Parameters:
chunkSize -
getMinChunkSize
public int getMinChunkSize()
Get the minimum chunk size
- Returns:
- the chunk size
maxChunkSizeTipText
public java.lang.String maxChunkSizeTipText()
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setMaxChunkSize
public void setMaxChunkSize(int chunkSize)
Set the maximum chunk size
- Parameters:
chunkSize -
getMaxChunkSize
public int getMaxChunkSize()
Get the maximum chunk size
- Returns:
- the chunk size
validationChunkSizeTipText
public java.lang.String validationChunkSizeTipText()
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setValidationChunkSize
public void setValidationChunkSize(int chunkSize)
Set the validation chunk size
- Parameters:
chunkSize -
getValidationChunkSize
public int getValidationChunkSize()
Get the validation chunk size
- Returns:
- the chunk size
pruningTypeTipText
public java.lang.String pruningTypeTipText()
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setPruningType
public void setPruningType(SelectedTag pruneType)
Set the pruning type
- Parameters:
pruneType -
getPruningType
public SelectedTag getPruningType()
Get the pruning type
- Returns:
- the type
debugTipText
public java.lang.String debugTipText()
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setDebug
public void setDebug(boolean debug)
Set debugging mode
- Parameters:
debug - true if debug output should be printed
getDebug
public boolean getDebug()
Get whether debugging is turned on
- Returns:
- true if debugging output is on
useResamplingTipText
public java.lang.String useResamplingTipText()
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setUseResampling
public void setUseResampling(boolean r)
Set resampling mode
- Parameters:
resampling - true if resampling should be done
getUseResampling
public boolean getUseResampling()
Get whether resampling is turned on
- Returns:
- true if resampling output is on
seedTipText
public java.lang.String seedTipText()
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setSeed
public void setSeed(int seed)
Set seed for resampling.
- Parameters:
seed - the seed for resampling
getSeed
public int getSeed()
Get seed for resampling.
- Returns:
- the seed for resampling
getBestCommitteeChunkSize
public int getBestCommitteeChunkSize()
Get the best committee chunk size
getBestCommitteeSize
public int getBestCommitteeSize()
Get the number of members in the best committee
getBestCommitteeErrorEstimate
public double getBestCommitteeErrorEstimate()
Get the best committee's error on the validation data
getBestCommitteeLLEstimate
public double getBestCommitteeLLEstimate()
Get the best committee's log likelihood on the validation data
toString
public java.lang.String toString()
Returns description of the boosted classifier.
- Returns:
- description of the boosted classifier as a string
- Overrides:
- toString in class java.lang.Object
main
public static void main(java.lang.String argv[])
Main method for this class.
All Packages Class Hierarchy This Package Previous Next Index WEKA's home