Skip to content

[MRG] make files private in sklearn.svm #15165

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

Merged
merged 7 commits into from
Oct 18, 2019

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Oct 9, 2019

Make files in sklearn.svm private.

In particular libsvm, liblinear and libsvm_sparse aren't exposed in the __init__ anymore

towards #9250

@NicolasHug
Copy link
Member Author

@amueller @rth any idea whether the cython files (liblinear, libsvm, libsvm_sparse) should stay public? They are currently all in __init__...

I hope we can make them private?

@NicolasHug
Copy link
Member Author

I'll make them private

@NicolasHug NicolasHug changed the title [WIP] make files private in sklearn.svm [MRG] make files private in sklearn.svm Oct 17, 2019
@NicolasHug
Copy link
Member Author

Pinging the usual @thomasjpfan @rth @adrinjalali @glemaitre

Copy link
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM :)

@@ -8,6 +8,7 @@
# This is a set of 3-tuples consisting of
# (new_module_name, deprecated_path, correct_import_path)
_DEPRECATED_MODULES = {
# TODO: Remove in 0.24
Copy link
Member

Choose a reason for hiding this comment

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

line 6 says "remove the whole file in 0.24", we don't need this line :)

@NicolasHug
Copy link
Member Author

@thomasjpfan let's please merge before any more conflict appears

@thomasjpfan thomasjpfan merged commit 5c5635f into scikit-learn:master Oct 18, 2019
from . import libsvm, liblinear
from . import libsvm_sparse
from . import _libsvm as libsvm
from .import _liblinear as liblinear
Copy link

@tpvasconcelos tpvasconcelos Mar 1, 2021

Choose a reason for hiding this comment

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

This syntax error has been merged to master! Surprisingly, this is actually not considered a syntax error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants