pymc-devs / pymc-devs/pymc-examples

Broken notebooks

Open
#723 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
398
Forks
325
Avg merge
9d 15m
Merged PRs (30d)
1

Description

Checking for stale notebooks...

groups based on the directory structure in the examples folder. For example, casual_inference is examples/casual_inference and any notebook in that directory is part of the casual_inference group.

Workflow

Using the logic from #740 to run the notebooks either mocked or not.

Example command: python -m scripts/notebook_runner/runner.py --notebooks examples/casual_inference

This will print out the errors with are used in the specific issues.

NOTE: These checks are not on the validity of the notebooks, but rather that they run through without any errors.

casual_inference

Notebooks
  • bayesian_nonparametric_causal.ipynb
    • checked
    • runs without error #724
  • excess_deaths.ipynb
    • checked
    • runs without error
  • regression_discontinuity.ipynb
    • checked
    • runs without error #725
  • moderation_analysis.ipynb
    • checked
    • runs without error
  • mediation_analysis.ipynb
    • checked
    • runs without error
  • GLM-simpsons-paradox.ipynb
    • checked
    • runs without error
  • difference_in_differences.ipynb
    • checked
    • runs without error
  • bayesian_ab_testing_introduction.ipynb
    • checked
    • runs without error
  • interventional_distribution.ipynb
    • checked
    • runs without error
  • interrupted_time_series.ipynb
    • checked
    • runs without error

samplers

Notebooks
  • DEMetropolisZ_tune_drop_fraction.ipynb
    • checked
    • runs without error
  • lasso_block_update.ipynb
    • checked
    • runs without error
  • DEMetropolisZ_EfficiencyComparison.ipynb
    • checked
    • runs without error #731
  • fast_sampling_with_jax_and_numba.ipynb
    • checked
    • runs without error
  • MLDA_variance_reduction_linear_regression.ipynb
    • checked
    • runs without error #729
  • SMC2_gaussians.ipynb
    • checked
    • runs without error
  • sampling_conjugate_step.ipynb
    • checked
    • runs without error #730
  • MLDA_introduction.ipynb
    • checked
    • runs without error
  • SMC-ABC_Lotka-Volterra_example.ipynb
    • checked
    • runs without error #732
  • sampling_compound_step.ipynb
    • checked
    • runs without error #728
  • MLDA_simple_linear_regression.ipynb
    • checked
    • runs without error #727
  • MLDA_gravity_surveying.ipynb
    • checked
    • runs without error #726

survival_analysis

Notebooks
  • bayes_param_survival.ipynb
    • checked
    • runs without error
  • survival_analysis.ipynb
    • checked
    • runs without error
  • weibull_aft.ipynb
    • checked
    • runs without error #746
  • censored_data.ipynb
    • checked
    • runs without error
  • frailty_models.ipynb
    • checked
    • runs without error

time_series

Notebooks
  • bayesian_var_model.ipynb
    • checked
    • runs without error
  • MvGaussianRandomWalk_demo.ipynb
    • checked
    • runs without error
  • Time_Series_Generative_Graph.ipynb
    • checked
    • runs without error
  • Air_passengers-Prophet_with_Bayesian_workflow.ipynb
    • checked
    • runs without error
  • Euler-Maruyama_and_SDEs.ipynb
    • checked
    • runs without error
  • Forecasting_with_structural_timeseries.ipynb
    • checked
    • runs without error
  • stochastic_volatility.ipynb
    • checked
    • runs without error
  • longitudinal_models.ipynb
    • checked
    • runs without error
  • AR.ipynb
    • checked
    • runs without error

generalized_linear_models

Notebooks
  • GLM-discrete-choice_models.ipynb
    • checked
    • runs without error
  • GLM-robust.ipynb
    • checked
    • runs without error
  • GLM-binomial-regression.ipynb
    • checked
    • runs without error
  • GLM-negative-binomial-regression.ipynb
    • checked
    • runs without error
  • multilevel_modeling.ipynb
    • checked
    • runs without error
  • GLM-out-of-sample-predictions.ipynb
    • checked
    • runs without error
  • GLM-model-selection.ipynb
    • checked
    • runs without error
  • GLM-hierarchical-binomial-model.ipynb
    • checked
    • runs without error
  • GLM-rolling-regression.ipynb
    • checked
    • runs without error
  • GLM-truncated-censored-regression.ipynb
    • checked
    • runs without error
  • GLM-robust-with-outlier-detection.ipynb
    • checked
    • runs without error
  • GLM-ordinal-regression.ipynb
    • checked
    • runs without error
  • GLM-poisson-regression.ipynb
    • checked
    • runs without error

bart

Notebooks
  • bart_categorical_hawks.ipynb
    • checked
    • runs without error
  • bart_quantile_regression.ipynb
    • checked
    • runs without error
  • bart_heteroscedasticity.ipynb
    • checked
    • runs without error
  • bart_introduction.ipynb
    • checked
    • runs without error

introductory

Notebooks
  • api_quickstart.ipynb
    • checked
    • runs without error

variational_inference

Notebooks
  • empirical-approx-overview.ipynb
    • checked
    • runs without error
  • variational_api_quickstart.ipynb
    • checked
    • runs without error
  • pathfinder.ipynb
    • checked
    • runs without error
  • GLM-hierarchical-advi-minibatch.ipynb
    • checked
    • runs without error
  • bayesian_neural_network_advi.ipynb
    • checked
    • runs without error

howto

Notebooks
  • wrapping_jax_function.ipynb
    • checked
    • runs without error
  • model_builder.ipynb
    • checked
    • runs without error
  • copula-estimation.ipynb
    • checked
    • runs without error
  • Missing_Data_Imputation.ipynb
    • checked
    • runs without error
  • profiling.ipynb
    • checked
    • runs without error
  • spline.ipynb
    • checked
    • runs without error
  • updating_priors.ipynb
    • checked
    • runs without error
  • howto_debugging.ipynb
    • checked
    • runs without error
  • LKJ.ipynb
    • checked
    • runs without error
  • marginalizing-models.ipynb
    • checked
    • runs without error
  • blackbox_external_likelihood_numpy.ipynb
    • checked
    • runs without error

case_studies

Notebooks
  • factor_analysis.ipynb
    • checked
    • runs without error
  • item_response_nba.ipynb
    • checked
    • runs without error
  • CFA_SEM.ipynb
    • checked
    • runs without error
  • reliability_and_calibrated_prediction.ipynb
    • checked
    • runs without error
  • GEV.ipynb
    • checked
    • runs without error
  • binning.ipynb
    • checked
    • runs without error #744
  • putting_workflow.ipynb
    • checked
    • runs without error
  • reinforcement_learning.ipynb
    • checked
    • runs without error
  • probabilistic_matrix_factorization.ipynb
    • checked
    • runs without error #743
  • BEST.ipynb
    • checked
    • runs without error
  • rugby_analytics.ipynb
    • checked
    • runs without error
  • hierarchical_partial_pooling.ipynb
    • checked
    • runs without error

gaussian_processes

Notebooks
  • gaussian_process.ipynb
    • checked
    • runs without error
  • GP-Latent.ipynb
    • checked
    • runs without error
  • GP-Heteroskedastic.ipynb
    • checked
    • runs without error
  • GP-SparseApprox.ipynb
    • checked
    • runs without error
  • GP-smoothing.ipynb
    • checked
    • runs without error
  • GP-MaunaLoa.ipynb
    • checked
    • runs without error
  • log-gaussian-cox-process.ipynb
    • checked
    • runs without error
  • HSGP-Advanced.ipynb
    • checked
    • runs without error
  • GP-Births.ipynb
    • checked
    • runs without error
  • GP-Marginal.ipynb
    • checked
    • runs without error
  • GP-Kron.ipynb
    • checked
    • runs without error
  • HSGP-Basic.ipynb
    • checked
    • runs without error
  • GP-Circular.ipynb
    • checked
    • runs without error
  • GP-MaunaLoa2.ipynb
    • checked
    • runs without error
  • GP-MeansAndCovs.ipynb
    • checked
    • runs without error
  • GP-TProcess.ipynb
    • checked
    • runs without error
  • MOGP-Coregion-Hadamard.ipynb
    • checked
    • runs without error

mixture_models

Notebooks
  • dependent_density_regression.ipynb
    • checked
    • runs without error #741
  • marginalized_gaussian_mixture_model.ipynb
    • checked
    • runs without error #742
  • dp_mix.ipynb
    • checked
    • runs without error
  • gaussian_mixture_model.ipynb
    • checked
    • runs without error
  • dirichlet_mixture_of_multinomials.ipynb
    • checked
    • runs without error

ode_models

Notebooks
  • ODE_API_shapes_and_benchmarking.ipynb
    • checked
    • runs without error #736
  • ODE_Lotka_Volterra_multiple_ways.ipynb
    • checked
    • runs without error #739
  • ODE_API_introduction.ipynb
    • checked
    • runs without error #738
  • ODE_with_manual_gradients.ipynb
    • checked
    • runs without error #737

spatial

Notebooks
  • malaria_prevalence.ipynb
    • checked
    • runs without error #735
  • conditional_autoregressive_priors.ipynb
    • checked
    • runs without error
  • nyc_bym.ipynb
    • checked
    • runs without error

fundamentals

  • data_container.ipynb
    • checked
    • runs without error

diagnostics_and_criticism

Notebooks
  • Bayes_factor.ipynb
    • checked
    • runs without error
  • Diagnosing_biased_Inference_with_Divergences.ipynb
    • checked
    • runs without error #733
  • model_averaging.ipynb
    • checked
    • runs without error #734
  • sampler-stats.ipynb
    • checked
    • runs without error

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with scripts/notebook_runner/runner.py and choose one unchecked notebook under examples, using the directory group and command shown in the issue. Run the notebook through the runner, inspect the reported error, and consider the work done when that notebook completes without errors and its checklist entry can be marked accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
testing-qa
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.