Skip to content

Conversation

OmarManzoor
Copy link
Contributor

@OmarManzoor OmarManzoor commented Nov 18, 2022

Reference Issues/PRs

Towards #24875

What does this implement/fix? Explain your changes.

  • Fixed -Wcpp warnings due to the usage of deprecated cnp.ndarray. when compiling sklearn.linear_model._sag_fast.
  • Replaced the usages of cnp.ndarray with memory views.
  • Used the addresses to the memory views to refer to the corresponding pointers that are in use.
  • Did some black formatting to make it easier to read the code.

Any other comments?

  • Is it possible to remove the _multinomial_grad_loss_all_samples function because the only usage I found for this method is in a test.

Copy link
Member

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Once again, thank you, @OmarManzoor.

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR @OmarManzoor ! LGTM

@thomasjpfan thomasjpfan merged commit 808c32d into scikit-learn:main Nov 29, 2022
@OmarManzoor OmarManzoor deleted the cython_sag_fast branch November 29, 2022 18:24
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 20, 2023
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants