py-why / py-why/EconML

ModuleNotFoundError: No module named 'econml.tests'

Open
#588 2 comments 0 reactions 1 assignee View on GitHub

@kbattocchi is already working on this.

Since Mar 12, 2022.

Dominant language
Jupyter Notebook
Stars
4.8k
Forks
827
PR merge metrics
No merged PRs in 30d

Description

I tried to run this on my local and Google Colab, both provided the same error.

I am simply trying to run an example in your documentation:

# Main imports
from econml.dynamic.dml import DynamicDML
from econml.tests.dgp import DynamicPanelDGP, add_vlines

# Helper imports
import numpy as np
from sklearn.linear_model import Lasso, LassoCV, LogisticRegression, LogisticRegressionCV, MultiTaskLassoCV
import matplotlib.pyplot as plt

%matplotlib inline

Traceback below:

ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_34972/2185440898.py in <module>
      1 # Main imports
      2 from econml.dynamic.dml import DynamicDML
----> 3 from econml.tests.dgp import DynamicPanelDGP, add_vlines
      4 
      5 # Helper imports

ModuleNotFoundError: No module named 'econml.tests'

Any help would be appreciated.

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.