Visible to Intel only — GUID: GUID-667FC08C-B3B2-4273-BEC5-A3090A42B275
Visible to Intel only — GUID: GUID-667FC08C-B3B2-4273-BEC5-A3090A42B275
Logistic Loss
LogisticLoss is a common objective function used for binary classification.
Operation |
Computational methods |
|
Mathematical formulation
Refer to Developer Guide: Logistic Loss.
Programming Interface
All types and functions in this section are declared in the oneapi::dal::logloss_objective namespace.
Descriptor
template<typenameFloat=float,typenameMethod=method::by_default,typenameTask=task::by_default>classdescriptor
- Template Parameters
-
Float – The floating-point type that the algorithm uses for intermediate computations. Can be float or double.
Method – Tag-type that specifies an implementation of algorithm. Can be method::dense_batch.
Task – Tag-type that specifies the type of the problem to solve. Can be task::compute.
Constructors
descriptor(doublel1_regularization_coefficient=0.0, doublel2_regularization_coefficient=0.0, boolfit_intercept=true)
Creates a new instance of the class with the given l1_regularization_coefficient, l2_regularization_coefficient and fit_intercept property values.
Properties
doublel2_regularization_coefficient
The L2-regularization strength.
- Getter & Setter
-
double get_l2_regularization_coefficient() const
auto & set_l2_regularization_coefficient(double value)
- Invariants
boolintercept_flag
The fit_intercept flag.
- Getter & Setter
-
bool get_intercept_flag() const
auto & set_intercept_flag(bool fit_intercept)
doublel1_regularization_coefficient
The L1-regularization strength.
- Getter & Setter
-
double get_l1_regularization_coefficient() const
auto & set_l1_regularization_coefficient(double value)
- Invariants
Method tags
structdense_batch
usingby_default=dense_batch
Task tags
structcompute
usingby_default=compute