Class for building model of the logistic regression algorithm
More...
template<typename modelFPType = DAAL_ALGORITHM_FP_TYPE>
class daal::algorithms::logistic_regression::interface1::ModelBuilder< modelFPType >
- Template Parameters
-
modelFPType | Data type to store logistic regression model data, double or float |
Constructs the Logistic Regression model builder
- Parameters
-
[in] | nFeatures | Number of features in training data |
[in] | nClasses | Number of classes in training data |
Get built model
- Returns
- Model pointer
services::Status getStatus |
( |
| ) |
|
|
inline |
Get status of model building
- Returns
- Status
void setBeta |
( |
RandomIterator |
first, |
|
|
RandomIterator |
last |
|
) |
| |
|
inline |
Method to set betas to model via random access iterator, last - first value have to be equal to (_nFeatures)*_nClasses in case when intercept flag is suppose to be false and (_nFeatures + 1)*_nClasses when intercept flag is true
- Template Parameters
-
RandomIterator | Random access iterator type for access to values of suport vectors |
- Parameters
-
[in] | first | Iterator which point to first element of support vectors |
[in] | last | Iterator which point to last element of support vectors |
The documentation for this class was generated from the following file: