Skip to content

Commit

Permalink
Remove old pyro and whynot code
Browse files Browse the repository at this point in the history
  • Loading branch information
bradyneal committed Mar 29, 2021
1 parent 1dcaef1 commit 2426b1a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 208 deletions.
1 change: 0 additions & 1 deletion data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .synthetic import *
from .whynot_simulators import *
20 changes: 0 additions & 20 deletions data/whynot_simulators.py

This file was deleted.

4 changes: 1 addition & 3 deletions models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from .linear import *
from .linear_pyro import *
from .vae import *
from .nonlinear import *
from .tarnet import *
from .gp import *
from .gp import *
69 changes: 0 additions & 69 deletions models/linear_pyro.py

This file was deleted.

104 changes: 0 additions & 104 deletions models/vae.py

This file was deleted.

11 changes: 0 additions & 11 deletions tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import torch

from data.synthetic import generate_wty_linear_scalar_data, generate_wty_linear_multi_w_data
from data.whynot_simulators import generate_lalonde_random_outcome
from data.lalonde import load_lalonde
from data.ihdp import load_ihdp_datasets
from utils import NUMPY, PANDAS, PANDAS_SINGLE, TORCH
Expand Down Expand Up @@ -184,16 +183,6 @@ def test_lalonde_original_cps3():
assert round(ate) == -1008


def test_lalonde_random_outcome_data_pandas():
(w, t, y), causal_effects = generate_lalonde_random_outcome(data_format=PANDAS)
assert isinstance(w, pd.DataFrame) and isinstance(t, pd.Series) and isinstance(y, pd.Series)


def test_lalonde_random_outcome_data_torch():
(w, t, y), causal_effects = generate_lalonde_random_outcome(data_format=TORCH)
assert all(isinstance(x, torch.Tensor) for x in (w, t, y))


def test_multivariate_w_data():
n = 10
d = 5
Expand Down

0 comments on commit 2426b1a

Please sign in to comment.