Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DIFF Create private _pairwise_distances_reductions submodule #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jjerphan
Copy link
Owner

@jjerphan jjerphan commented Jun 10, 2022

Reference Issues/PRs

Follow-up of scikit-learn#23515.

What does this implement/fix? Explain your changes.

The single source file is split in several files to create a private submodule:

  • an extension per file (similarly to the tree submodule)
  • dispatchers are currently present with their associated implementation so as to be able to template implementation using Tempita
  • import paths have not changed for Python callers
  • a testing utils which was used in neighbors' tests as been moved to utils._testing

Any other comments?

@jeremiedbb in scikit-learn#23515 (review) proposed to group dispatchers together. A proposition is made in this regard in the last commit, 83a950f.

This is used as a diff for now but this branch might be used to open another PR.

@jjerphan jjerphan force-pushed the maint/pdr-private-submodule branch 3 times, most recently from 83a950f to 5b250f1 Compare June 10, 2022 14:27
@jjerphan jjerphan changed the title MAINT Create private _pairwise_distances_reductions submodule DIFF Create private _pairwise_distances_reductions submodule Jun 10, 2022
@jjerphan jjerphan marked this pull request as draft June 10, 2022 16:36
Copy link

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

The new code organization looks good to me.

Copy link

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

I like the new layout as well. The tests could stay in metrics/tests but no strong opinion.

thomasjpfan and others added 16 commits June 14, 2022 11:13
Co-authored-by: Pierre Ablin <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
…scikit-learn#22268)

* memory improvements and fast execution with np.einsum than np.dot
Co-authored-by: Jérémie du Boisberranger <[email protected]>
kanissh and others added 27 commits June 20, 2022 10:47
Update reference link to "A survey of Partial Least Squares (PLS) methods, with emphasis on the two-block case" by JA Wegelin
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
Co-authored-by: Julien Jerphanion <[email protected]>
…D array (scikit-learn#23548)

* Change input array to ensure_2d=True

* Reshape input list to 2D if metric is coverage_error

* Add test for error message with 1D array on coverage_error

* Modify 1D error message test

* Use parametrize to test different 1d arrays

* Explain why reshape in test_regression_thresholded_inf_nan_input

* Add changelog entry for this fix

* Add test comments to sklearn/metrics/tests/test_ranking.py

Co-authored-by: Julien Jerphanion <[email protected]>

Co-authored-by: Julien Jerphanion <[email protected]>
Updated link to book chapter in "Machine Learning: An Algorithmic Perspective" by S. Marsland.
Updated link to reference "Random Fourier approximations for skewed multiplicative histogram kernels"
…-learn#23515)

Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Jérémie du Boisberranger <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
@jjerphan
Copy link
Owner Author

Closed for scikit-learn#23724.

@jjerphan jjerphan closed this Jun 22, 2022
jjerphan added a commit that referenced this pull request Jun 22, 2022
From: #14 (review)

Co-authored-by: Jérémie du Boisberranger <[email protected]>
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.