InputType - The input type the algorithm is learning over.CategoryType - The category type the algorithm is learning over.public static class IVotingCategorizerLearner.OutOfBagErrorStoppingCriteria<InputType,CategoryType> extends AbstractCategorizerOutOfBagStoppingCriteria<InputType,CategoryType>
| Modifier and Type | Field and Description |
|---|---|
protected IVotingCategorizerLearner<InputType,CategoryType> |
learner
The learner the stopping criteria is for.
|
DEFAULT_SMOOTHING_WINDOW_SIZE, outOfBagCorrect, outOfBagErrorCount, previousSmoothedErrorRate, rawErrorRates, smoothedErrorRates, smoothingBuffer, smoothingWindowSize| Constructor and Description |
|---|
OutOfBagErrorStoppingCriteria()
Creates a new
OutOfBagErrorStoppingCriteria. |
OutOfBagErrorStoppingCriteria(int smoothingWindowSize)
Creates a new
OutOfBagErrorStoppingCriteria with the given
smoothing window size. |
| Modifier and Type | Method and Description |
|---|---|
void |
algorithmStarted(IterativeAlgorithm algorithm)
This method is called when a algorithm has started, before the first
step of the algorithm.
|
DataDistribution<CategoryType> |
getOutOfBagEstimate(int index)
Gets the out-of-bag estimate distribution across categories for the
training example with the given index.
|
algorithmEnded, getSmoothingWindowSize, setSmoothingWindowSize, stepEndedstepStartedcloneprotected transient IVotingCategorizerLearner<InputType,CategoryType> learner
public OutOfBagErrorStoppingCriteria()
OutOfBagErrorStoppingCriteria.public OutOfBagErrorStoppingCriteria(int smoothingWindowSize)
OutOfBagErrorStoppingCriteria with the given
smoothing window size.smoothingWindowSize - The smoothing window size to use. Must be positive.public void algorithmStarted(IterativeAlgorithm algorithm)
IterativeAlgorithmListeneralgorithmStarted in interface IterativeAlgorithmListeneralgorithmStarted in class AbstractCategorizerOutOfBagStoppingCriteria<InputType,CategoryType>algorithm - The algorithm that has started.public DataDistribution<CategoryType> getOutOfBagEstimate(int index)
AbstractCategorizerOutOfBagStoppingCriteriagetOutOfBagEstimate in class AbstractCategorizerOutOfBagStoppingCriteria<InputType,CategoryType>index - The 0-based index for the training example.