Skip to content

Conversation

bibikar
Copy link
Contributor

@bibikar bibikar commented Jun 27, 2019

This PR adds logistic regression replicating the results of sklearn.linear_model.LogisticRegression but implemented in daal4py. It supports solvers lbfgs and newton-cg. test_fit uses the canonical form of logistic regression for the binary case (which in scikit-learn is multi_class='ovr') and the multinomial (softmax of exponentiated scores, multi_class='multinomial') for the multi-class case. test_predict supports any combination of n_classes and multi_class, but we use the same multi_class used in test_fit.

While we cannot directly use daal4py's logistic regression because it isn't as easy as native DAAL to pass in a custom solver (see #8), we use daal4py's logistic regression objective functions and math primitives to compute logistic regression.

@bibikar bibikar requested a review from oleksandr-pavlyk June 27, 2019 17:55
@bibikar bibikar merged commit 62f153d into IntelPython:master Jun 27, 2019
@bibikar bibikar deleted the feature/daal4py_log_reg branch June 27, 2019 18:40
razdoburdin pushed a commit to razdoburdin/scikit-learn_bench that referenced this pull request Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants