Package si.ijs.kt.clus.ext.ensemble
Class ClusOOBWeights
java.lang.Object
si.ijs.kt.clus.ext.ensemble.ClusOOBWeights
- Direct Known Subclasses:
ClusROSOOBWeights
Class that holds OOB weights.
Used for ensemble voting.
- Author:
- martinb
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
protected SettingsEnsemble.EnsembleVotingType
protected final double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
Normalize errors to get weights Loss functions (less is better): => RMSE for regression => 1-CA for classification Weights are proportionate to the loss function: 1/errordouble
getComponentWeight
(int baseModelNumber, int component) double
getModelWeight
(int baseModelNumber) getNew
(int numberOfModels) void
setErrors
(int baseModelNumber, double aggregatedError, double[] componentErrors) void
-
Field Details
-
SMALL_BUT_MORE_THAN_ZERO
protected final double SMALL_BUT_MORE_THAN_ZERO- See Also:
-
m_AggregatedError
-
m_ComponentErrors
-
m_AggregatedWeight
-
m_ComponentWeights
-
m_EnsembleVotingType
-
m_Alpha
protected double m_Alpha
-
-
Constructor Details
-
ClusOOBWeights
-
-
Method Details
-
getNew
-
setErrors
public void setErrors(int baseModelNumber, double aggregatedError, double[] componentErrors) -
setErrors
-
calculateWeights
public void calculateWeights()Normalize errors to get weights Loss functions (less is better): => RMSE for regression => 1-CA for classification Weights are proportionate to the loss function: 1/error -
calculateAggregateWeights
protected void calculateAggregateWeights() -
calculateComponentWeights
protected void calculateComponentWeights() -
getModelWeight
public double getModelWeight(int baseModelNumber) -
getComponentWeight
public double getComponentWeight(int baseModelNumber, int component)
-