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

Skip to content

ENH Adds file extension selection to load_files - #22498

Merged
thomasjpfan merged 30 commits into
scikit-learn:mainfrom
Micky774:datasets_select_load_files_extensions
Feb 17, 2022
Merged

ENH Adds file extension selection to load_files#22498
thomasjpfan merged 30 commits into
scikit-learn:mainfrom
Micky774:datasets_select_load_files_extensions

Conversation

@Micky774

@Micky774 Micky774 commented Feb 15, 2022

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Continues PR #19747
Resolves #19747
Fixes #19269

What does this implement/fix? Explain your changes.

PR #19747: Adds a new parameter allowed_extensions which allows users to specify extensions to load when using load_files.
This PR: Addresses remaining review comment and slightly modifies selection logic.

Any other comments?

@thomasjpfan thomasjpfan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR!

Comment thread sklearn/datasets/_base.py Outdated
Comment thread sklearn/datasets/_base.py Outdated
Comment thread sklearn/datasets/tests/test_base.py Outdated

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@thomasjpfan thomasjpfan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the update. A small nit regarding creating the set multiple times.

Comment thread sklearn/datasets/_base.py Outdated

@thomasjpfan thomasjpfan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Minor comment otherwise LGTM

Comment thread sklearn/datasets/_base.py Outdated
@thomasjpfan
thomasjpfan merged commit fc72ebe into scikit-learn:main Feb 17, 2022
@Micky774
Micky774 deleted the datasets_select_load_files_extensions branch February 17, 2022 22:21
thomasjpfan added a commit to thomasjpfan/scikit-learn that referenced this pull request Mar 1, 2022
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Tony <[email protected]>
Co-authored-by: Kazim <[email protected]>
Co-authored-by: Tony Attalla <[email protected]>
Co-authored-by: Guillaume Lemaitre <[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.

sklearn.datasets.load_files select file extension

5 participants