Visible to Intel only — GUID: GUID-D3846548-A19B-4A7B-9C54-A5F1D16270F0
Visible to Intel only — GUID: GUID-D3846548-A19B-4A7B-9C54-A5F1D16270F0
LogitBoost Classifier
LogitBoost is a boosting classification algorithm. LogitBoost and AdaBoost are close to each other in the sense that both perform an additive logistic regression. The difference is that AdaBoost minimizes the exponential loss, whereas LogitBoost minimizes the logistic loss.
LogitBoost within oneDAL implements a multi-class classifier.
Details
Given n feature vectors of size p and a vector of class labels , where describes the class to which the feature vector belongs and J is the number of classes, the problem is to build a multi-class LogitBoost classifier.
Training Stage
The LogitBoost model is trained using the Friedman method [Friedman00].
Let is the indicator that the i-th feature vector belongs to class j. The scheme below, which uses the stump weak learner, shows the major steps of the algorithm:
Start with weights , , , , .
For :
Do
For
Do
Compute working responses and weights in the j-th class:
Fit the function by a weighted least-squares regression of to with weights using the stump-based approach.
End do
End do
The result of the model training is a set of M stumps.
Prediction Stage
Given the LogitBoost classifier and r feature vectors , the problem is to calculate the labels of the classes to which the feature vectors belong.
Batch Processing
LogitBoost classifier follows the general workflow described in Classification Usage Model.
Training
For a description of the input and output, refer to Classification Usage Model.
At the training stage, a LogitBoost classifier has the following parameters:
Parameter |
Default Value |
Description |
---|---|---|
algorithmFPType |
float |
The floating-point type that the algorithm uses for intermediate computations. Can be float or double. |
method |
defaultDense |
The computation method used by the LogitBoost classifier. The only training method supported so far is the Friedman method. |
weakLearnerTraining |
DEPRECATED: Pointer to an object of the stump training class. USE INSTEAD: Pointer to an object of the regression stump training class. |
DEPRECATED: Pointer to the training algorithm of the weak learner. By default, a stump weak learner is used. USE INSTEAD: Pointer to the regression training algorithm. By default, a regression stump with mse split criterion is used. |
weakLearnerPrediction |
DEPRECATED: Pointer to an object of the stump prediction class. USE INSTEAD: Pointer to an object of the regression stump prediction class. |
DEPRECATED: Pointer to the prediction algorithm of the weak learner. By default, a stump weak learner is used. USE INSTEAD: Pointer to the regression prediction algorithm. By default, a regression stump with mse split criterion is used. |
accuracyThreshold |
0.01 |
LogitBoost training accuracy. |
maxIterations |
100 |
The maximal number of iterations for the LogitBoost algorithm. |
nClasses |
Not applicable |
The number of classes, a required parameter. |
weightsDegenerateCasesThreshold |
The threshold to avoid degenerate cases when calculating weights . |
|
responsesDegenerateCasesThreshold |
The threshold to avoid degenerate cases when calculating responses . |
Prediction
For a description of the input and output, refer to Classification Usage Model.
At the prediction stage, a LogitBoost classifier has the following parameters:
Parameter |
Default Value |
Description |
---|---|---|
algorithmFPType |
float |
The floating-point type that the algorithm uses for intermediate computations. Can be float or double. |
method |
defaultDense |
Performance-oriented computation method, the only method supported by the LogitBoost classifier at the prediction stage. |
weakLearnerPrediction |
DEPRECATED: Pointer to an object of the stump prediction class. USE INSTEAD: Pointer to an object of the regression stump prediction class. |
DEPRECATED: Pointer to the prediction algorithm of the weak learner. By default, a stump weak learner is used. USE INSTEAD: Pointer to the regression prediction algorithm. By default, a regression stump with mse split criterion is used. |
nClasses |
Not applicable |
The number of classes, a required parameter. |
Examples
C++ (CPU)
Batch Processing:
Java*
Batch Processing:
Python*
Batch Processing: