pymc-devs / pymc-devs/pymc-examples

notebook: glm-model-selection, bambi import error

Open
#433 1 comment 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

Notebook title: GLM Model Selection
Notebook url: https://github.com/pymc-devs/pymc-examples/blob/main/examples/generalized_linear_models/GLM-model-selection.ipynb
Note: it is using pymc3

Issue description

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [1], in <cell line: 2>()
      1 import arviz as az
----> 2 import bambi as bmb
      3 import matplotlib.pyplot as plt
      4 import numpy as np

ModuleNotFoundError: No module named 'bambi'

Expected output

The notebook should run without error.

Proposed solution

Do the requirements file need to be updated to install bambi?

  1. https://github.com/pymc-devs/pymc-examples/blob/main/requirements-write.txt
  2. https://github.com/pymc-devs/pymc-examples/blob/main/requirements-docs.txt

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

Open examples/generalized_linear_models/GLM-model-selection.ipynb and run its imports to reproduce the missing bambi error. Then inspect requirements-write.txt and requirements-docs.txt to determine where the dependency belongs. Done means the notebook's bambi import and subsequent execution complete without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.