Skip to content

MAINT: Improve codebase maintainability and fix Kalman filter corner case #9740

Open

Description

@un1u3

Several areas in the codebase currently hinder maintainability or may cause latent bugs:

  1. Dead code:

    • _partial_regression in regressionplots.py
    • CheckVAR in test_var.py
    • Outdated rpy2 test blocks in test_glm.py
  2. Missing warnings:

    • innovations_mle in SARIMA does not notify when optimization fails
  3. Kalman filter corner case:

    • predict in kalman_filter.py may initialize incorrectly during the diffuse phase
  4. Stale annotations:

    • Many TODO and FIXME comments are outdated or no longer relevant

Expected Outcome

  • Identify and remove unused code
  • Add necessary warnings for optimization failures
  • Fix diffuse-phase initialization in Kalman filter predictions
  • Audit and clean up stale annotations to improve clarity

Activity

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