Skip to content

ENH: Create logistic regression oneDAL object on the fly for predictions after fallbacks#3114

Open
david-cortes-intel wants to merge 2 commits intouxlfoundation:mainfrom
david-cortes-intel:logreg_model_from_coef
Open

ENH: Create logistic regression oneDAL object on the fly for predictions after fallbacks#3114
david-cortes-intel wants to merge 2 commits intouxlfoundation:mainfrom
david-cortes-intel:logreg_model_from_coef

Conversation

@david-cortes-intel
Copy link
Copy Markdown
Contributor

Description

This PR changes the logic of logistic regression on GPU to use oneDAL for predictions even if the model was fitted through scikit-learn, by creating a oneDAL object on-the-fly from the fitted coefficients.


Checklist:

Completeness and readability

  • I have commented my code, particularly in hard-to-understand areas.
  • Git commit message contains an appropriate signed-off-by string (see CONTRIBUTING.md for details).
  • I have resolved any merge conflicts that might occur with the base branch.

Testing

  • I have run it locally and tested the changes extensively.
  • All CI jobs are green or I have provided justification why they aren't.
  • I have extended testing suite if new functionality was introduced in this PR.

@david-cortes-intel
Copy link
Copy Markdown
Contributor Author

/intelci: run

@david-cortes-intel
Copy link
Copy Markdown
Contributor Author

/azp run Nightly

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2026

Codecov Report

❌ Patch coverage is 19.04762% with 17 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
onedal/linear_model/logistic_regression.py 16.66% 10 Missing ⚠️
sklearnex/linear_model/logistic_regression.py 22.22% 7 Missing ⚠️
Flag Coverage Δ
azure 79.44% <19.04%> (-0.18%) ⬇️
github 81.75% <19.04%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sklearnex/linear_model/logistic_regression.py 45.02% <22.22%> (-0.92%) ⬇️
onedal/linear_model/logistic_regression.py 33.82% <16.66%> (-3.68%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oneAPI sklearn-patch sklearn patching

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant