Skip to content

DEPR: Deprecations from prior versions #5092

Open

Description

@jbrockmendel

There is a lot of code marked as deprecated or to be removed. This issue is intended to keep track of them and improve the odds those deprecations are followed up on.

Short-run, ~four things are actionable:

a) things that were marked as to-be-removed in version 0.8 or 0.9 should actually be removed in version 0.10.
b) things that were marked as removed "in the future" should be updated to be more specific.
c) decide which if any of these messages are fine being kept indefinitely, e.g. perhaps the "nobs is deprecated in favor of lags"


Related:


  • stats._lilliefors.lillifors "will be removed in 0.9"
  • stats.diagnostic.acorr_breush_godfrey "will be removed in 0.9"
  • stats.diagnostic.het_breushpagan "will be removed in 0.9"
  • stats.diagnostic.StatTestMC "delete when testing is finished", "this has been copied to tools/mctools.py, with improvements"
  • stats.multicomp.fdrcorrection_bak "Old version, to be deleted"
  • stats.multicomp.maxzero "Not used anymore"
  • stats.multicomp.maxzerodown "Not used anymore"
  • stats.multicomp.rejectionline "Not used anymore"
  • stats.runs.symmetry_bowker "Deprecated, use stats.TableSymmetry instead" <--at least 3 years like this
  • stats.runs.mcnemar "Deprecated, use stats.TableSymmetry instead" <--at least 3 years like this
  • stats.runs.cochrans_q "Deprecated, use stats.TableSymmetry instead" <--at least 3 years like this
  • GLMResults.resid_anscombe "Anscombe residuals currently unscaled. In a future release they will be scaled"
  • genmod.families.family.Family "Calling Family(..) with a link class as argument is deprecated"
  • base._penalties._check_wts "wts method is deprecated. Use weights instead"
  • base._penalties.Penalty.grad "grad method is deprecated. Use deriv instead"
  • base._penalties.CovariancePenalty.grad "grad method is deprecated. Use deriv instead"
  • datasets.utils.as_numpy_dataset: "load will return datasets containing pandas DataFrames and Series in the future"
  • statespace.tools.prepare_trend_spec "Argument option trend='nc' is deprecated. Please use option trend='n'."
  • arima_process.arma_acf "nobs is deprecated in favor of lags"
  • arima_process.arma_pacf "nobs is deprecated in favor of lags"
  • arima_process.arma_impulse_response "nobs is deprecated in favor of lags"
  • arima_process.arma2ma "nobs is deprecated in favor of lags"
  • arima_process.arma2ar "nobs is deprecated in favor of lags"
  • vector_ar.dynamic.DynamicVAR "is deprecated and will be removed in a future version"
  • vector_ar.dynamic.DynamicPanelVAR "is deprecated and will be removed in a future version"
  • vector_ar.util.get_logdet "will be removed in 0.8.0"
  • discrete_margins.Margins "Mostly a do nothing class" superceded by DiscreteMargins below

Activity

  1. josef-pkt commented on Sep 3, 2018

    @josef-pkt
    Member

    a few thoughts based on AFAIR:

    • the first 3, lillifors, breush can go, just a spelling correction and replacement is obvious with tab completion
    • multicomp needs some checking, e.g. maxzero and similar are "not used anymore" in the current implementation, but still might be useful as separate helper functions, needs decision whether the "theoretical" code is still useful or not, i.e. general step-up and step-down procedures. The current implementation uses computational tricks to be faster and have shorter code.
    • runs: not sure, can wait, McNemar and similar will come back again outside the contingency tables for two sample paired proportion functions
    • resid_anscombe is recent and not ready for deletion yet
    • family link is ancient, AFAIR, but costless, I think it can be removed by now (even for a core feature)
    • _penalties are new, not up for deletion yet
    • dataset_utils, also new
    • DynamicVAR, also new
    • arima_process, I guess those can be removed, 2(?) version of deprecation
    • Margins: waiting for refactoring and generalization
    • get_logdet was most likely numpy compat or precursor to the numpy function, check and delete
  2. jbrockmendel commented on Sep 7, 2018

    @jbrockmendel
    ContributorAuthor

    In generalized_estimating_equations

        # FIXME: alias to be removed, temporary backwards compatibility
        split_resid = resid_split
        centered_resid = resid_centered
        split_centered_resid = resid_centered_split
    
        [...]
    
        def conf_int(self, alpha=.05, cols=None, cov_type=None):
            [...]
            # FIXME: remove this method here
    
        [...]
    
        # FIXME: alias to be removed, temporary backwards compatibility
        params_sensitivity = sensitivity_params
    

    need to check when "temporary" started

  3. jbrockmendel commented on Sep 7, 2018

    @jbrockmendel
    ContributorAuthor

    gmm:

    self.results = results # FIXME: remove, still keeping it temporarily
    
  4. jbrockmendel commented on Sep 7, 2018

    @jbrockmendel
    ContributorAuthor

    miscmodels.count:

    #this was added temporarily for bug-hunting, but shouldn't be needed
    #    def loglike(self, params):
    #        return -self.nloglikeobs(params).sum(0)
    
  5. jbrockmendel commented on Sep 9, 2018

    @jbrockmendel
    ContributorAuthor
    • vector_ar.dynamic.Equation is just an __init__ method that passes, never used
  6. bashtage commented on Jul 18, 2019

    @bashtage
    Member

    Would be great if you could do a new pass.

  7. jbrockmendel commented on Jul 18, 2019

    @jbrockmendel
    ContributorAuthor

    good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions