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

Skip to content

Conversation

@vnmabus
Copy link
Contributor

@vnmabus vnmabus commented Dec 28, 2020

Path-like objects, such as those created with pathlib are now allowed as paths in the load_svmlight_file and load_svmlight_files functions.

Add also a test for this functionality.

Add also a test for this functionality.
@vnmabus vnmabus changed the title Allow path-like objects in load_svmlight_file. [MRG] Allow path-like objects in load_svmlight_file. Dec 29, 2020
Base automatically changed from master to main January 22, 2021 10:53
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! I am okay with adding path-like support.

Cython implementation, providing 2-4x speedups.
:pr:`23127` by :user:`Meekail Zain <micky774>`

- |Enhancement| Path-like objects, such as those created with pathlib are now allowed as paths in :func:`datasets.load_svmlight_file` and :func:`datasets.load_svmlight_files`.
Copy link
Member

Choose a reason for hiding this comment

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

May this be wrapped to be less than 88 characters per line to match the rest of the file?

@thomasjpfan thomasjpfan changed the title [MRG] Allow path-like objects in load_svmlight_file. ENH Allow path-like objects in load_svmlight_file. Aug 22, 2022
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.

I left some minor docstring related comments, otherwise LGTM!

Copy link
Member

@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.

Thanks @vnmabus

@jeremiedbb jeremiedbb merged commit 083ab6f into scikit-learn:main Oct 28, 2022
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Oct 31, 2022
andportnoy pushed a commit to andportnoy/scikit-learn that referenced this pull request Nov 5, 2022
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