-
-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[MRG] 0.20 deprecations #9570
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
[MRG] 0.20 deprecations #9570
Conversation
(and yes, I'm just trying to hack my lines added / lines deleted ratio on github, you got me ;) |
fixup! remove RandomizedPCA from docs references etc
Remove mixture/gmm
c9776c7
to
4b7aa69
Compare
This pull request fixes 2 alerts when merging f114920 into 20cb37e - view on lgtm.com fixed alerts:
Comment posted by lgtm.com |
This pull request fixes 2 alerts when merging fab56a3 into f049ec7 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
CI failures |
@amueller Do you mind if I am solving the conflicts and make the CI happy? |
results_dict = {k: benchmark(est, data) for k, est in [('pca', pca), | ||
('rpca', rpca)]} | ||
rpca = PCA(n_components=n_components, svd_solver='randomized', random_state=1999) | ||
results_dict = {k: benchmark(est, data) for k, est in [('pca', pca)]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example does not work.
We should either keep rcpa
here or remove it everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, or we can just drop it.
My comment was meant to mention that the example is currently broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a quick skip through the diff as well, and given the earlier positive reviews, I would suggest to update this with master and merge it.
Then we can further investigate/clean-up remaining deprecation warnings on master.
return '"tree.dot"' | ||
|
||
|
||
SENTINEL = Sentinel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this sentinel class can be removed now
results_dict = {k: benchmark(est, data) for k, est in [('pca', pca), | ||
('rpca', rpca)]} | ||
rpca = PCA(n_components=n_components, svd_solver='randomized', random_state=1999) | ||
results_dict = {k: benchmark(est, data) for k, est in [('pca', pca)]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is currently a test failure (as well as flake8 failure and merge conflicts):
Any idea why this failure is occurring? |
I say we merge on green. |
This pull request fixes 3 alerts when merging ee5710d into 62301aa - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
Thanks @amueller |
And thanks @massich!! |
Cue lots of complaints about |
We just lost 10,200 lines of code :D |
thanks for the fixes @jnothman! Sorry I was absent, I'm so glad this is in! |
no worries. I thought it was a good idea to merge *before* release :D
|
What's your preferred timeline now? |
My preferred timeline? I'm feeling very full up of work things at the moment and can't see myself being able to do anything focused towards release... but mostly there are a handful of things that we should still be trying to squeeze into release (deprecations, bug fixes, maybe a MissingIndicator, etc.), several of which are awaiting second review. The key features are in. |
I would also personally like to see some of #9599 merged to help libraries extend the search approach in BaseSearchCV... |
I really would like the tags but not sure it's worth delaying the release... |
We did flag the issues/PRs for the release with the 0.20 milestone. |
I haven't removed the stuff that's
model_selection
now, in case we want to give that another version.Also some other stuff still needs to be done.
Remove code tagged to be removed in v.0.20. Stole todo from #10094
Things to remove:
Classes (reported here)
from whats new reported here
Linear, kernelized and related models
residual_metric
has been deprecated in :class:linear_model.RANSACRegressor
. Useloss
instead. ByManoj Kumar
_..X_
and.y_
has been deprecated in :class:isotonic.IsotonicRegression
. By :user:Jonathan Arfa <jarfa>
.Decomposition, manifold learning and clustering
mixture.DPGMM
is deprecated in favor of the new :class:mixture.BayesianGaussianMixture
(with the parameterweight_concentration_prior_type='dirichlet_process'
). The new class solves the computational problems of the old class and computes the Gaussian mixture with a Dirichlet process prior faster than before. :issue:7295
by :user:Wei Xue <xuewei4d>
and :user:Thierry Guillemot <tguillemot>
.mixture.VBGMM
is deprecated in favor of the new :class:mixture.BayesianGaussianMixture
(with the parameterweight_concentration_prior_type='dirichlet_distribution'
). The new class solves the computational problems of the old class and computes the Variational Bayesian Gaussian mixture faster than before. :issue:6651
by :user:Wei Xue <xuewei4d>
and :user:Thierry Guillemot <tguillemot>
.mixture.GMM
is deprecated in favor of the new :class:mixture.GaussianMixture
. The new class computes the Gaussian mixture faster than before and some of computational problems have been solved. :issue:6666
by :user:Wei Xue <xuewei4d>
and :user:Thierry Guillemot <tguillemot>
.Model evaluation and meta-estimators
The :mod:
sklearn.cross_validation
, :mod:sklearn.grid_search
and :mod:sklearn.learning_curve
have been deprecated and the classes and functions have been reorganized into the :mod:sklearn.model_selection
module. Ref :ref:model_selection_changes
for more information. :issue:4294
byRaghav RV
_.The
grid_scores_
attribute of :class:model_selection.GridSearchCV
and :class:model_selection.RandomizedSearchCV
is deprecated in favor of the attributecv_results_
. Ref :ref:model_selection_changes
for more information. :issue:6697
byRaghav RV
_.The parameters
n_iter
orn_folds
in old CV splitters are replaced by the new parametern_splits
since it can provide a consistent and unambiguous interface to represent the number of train-test splits. :issue:7187
by :user:YenChen Lin <yenchenlin>
.classes
parameter was renamed tolabels
in :func:metrics.hamming_loss
. :issue:7260
by :user:Sebastián Vanrell <srvanrell>
.The splitter classes
LabelKFold
,LabelShuffleSplit
,LeaveOneLabelOut
andLeavePLabelsOut
are renamed to :class:model_selection.GroupKFold
, :class:model_selection.GroupShuffleSplit
, :class:model_selection.LeaveOneGroupOut
and :class:model_selection.LeavePGroupsOut
respectively. Also the parameterlabels
in the :func:split
method of the newly renamed splitters :class:model_selection.LeaveOneGroupOut
and :class:model_selection.LeavePGroupsOut
is renamed togroups
. Additionally in :class:model_selection.LeavePGroupsOut
, the parametern_labels
is renamed ton_groups
. :issue:6660
byRaghav RV
_.Error and loss names for
scoring
parameters are now prefixed by'neg_'
, such asneg_mean_squared_error
. The unprefixed versions are deprecated and will be removed in version 0.20. :issue:7261
by :user:Tim Head <betatim>
.files with remaining deprecated lines