Package moa.classifiers.meta
Class StreamingGradientBoostedTrees.SGBT
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.meta.StreamingGradientBoostedTrees.SGBT
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Enclosing class:
- StreamingGradientBoostedTrees
public static class StreamingGradientBoostedTrees.SGBT extends AbstractMOAObject
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StreamingGradientBoostedTrees.SGBT.BoostingCommittee
static class
StreamingGradientBoostedTrees.SGBT.GradHess
static class
StreamingGradientBoostedTrees.SGBT.Objective
static class
StreamingGradientBoostedTrees.SGBT.SoftmaxCrossEntropy
static class
StreamingGradientBoostedTrees.SGBT.SquaredError
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SGBT(Classifier baseLearner, Random classifierRandom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.DoubleVector
getRawScoreForInstance(Instance inst)
double[]
getVotesForInstance(Instance inst)
void
initEnsemble(Instance inst)
int
measureByteSize()
Gets the memory size of this object.void
trainBoosterUsingSoftmaxCrossEntropyLoss(Instance inst)
void
trainOnInstance(Instance inst)
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, toString
-
-
-
-
Field Detail
-
numberOfboostingIterations
public IntOption numberOfboostingIterations
-
percentageOfAttributesForEachBoostingIteration
public IntOption percentageOfAttributesForEachBoostingIteration
-
learningRateOption
public FloatOption learningRateOption
-
useOneHotEncoding
public FlagOption useOneHotEncoding
-
multipleIterationByCeilingOfHessianTimesM
public IntOption multipleIterationByCeilingOfHessianTimesM
-
randomlySkip1SthOfInstancesAtTraining
public IntOption randomlySkip1SthOfInstancesAtTraining
-
useSquaredLossForClassification
public FlagOption useSquaredLossForClassification
-
booster
protected ArrayList<StreamingGradientBoostedTrees.SGBT.BoostingCommittee> booster
-
subSpacesForEachBoostingIteration
protected ArrayList<ArrayList<Integer>> subSpacesForEachBoostingIteration
-
mObjective
protected StreamingGradientBoostedTrees.SGBT.Objective mObjective
-
-
Constructor Detail
-
SGBT
public SGBT(Classifier baseLearner, Random classifierRandom)
-
-
Method Detail
-
trainOnInstance
public void trainOnInstance(Instance inst)
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
measureByteSize
public int measureByteSize()
Description copied from interface:MOAObject
Gets the memory size of this object.- Specified by:
measureByteSize
in interfaceMOAObject
- Overrides:
measureByteSize
in classAbstractMOAObject
- Returns:
- the memory size of this object
-
initEnsemble
public void initEnsemble(Instance inst)
-
trainBoosterUsingSoftmaxCrossEntropyLoss
public void trainBoosterUsingSoftmaxCrossEntropyLoss(Instance inst)
-
getRawScoreForInstance
public DoubleVector getRawScoreForInstance(Instance inst)
-
getVotesForInstance
public double[] getVotesForInstance(Instance inst)
-
-