Skip to content

Commit

Permalink
Fix distr_plot_single_sim() (#750)
Browse files Browse the repository at this point in the history
* fix dataset.synthetic.distr_plot_single_sim()
* update the version to 0.15.1.dev0
* rerun the meta learner notebook after fixing 741
  • Loading branch information
jeongyoonlee authored Mar 23, 2024
1 parent 6b2b9a8 commit d41c40c
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 211 deletions.
4 changes: 2 additions & 2 deletions causalml/dataset/synthetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def distr_plot_single_sim(

# deleted generated data and assign actual value
del preds_for_plot[KEY_GENERATED_DATA]
global_lower = np.percentile(np.hstack(preds_for_plot.values()), 1)
global_upper = np.percentile(np.hstack(preds_for_plot.values()), 99)
global_lower = np.percentile(np.hstack(list(preds_for_plot.values())), 1)
global_upper = np.percentile(np.hstack(list(preds_for_plot.values())), 99)
learners = list(preds_for_plot.keys())
learners = [learner for learner in learners if learner not in drop_learners]

Expand Down
428 changes: 220 additions & 208 deletions docs/examples/meta_learners_with_synthetic_data.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "causalml"
version = "0.15.0"
version = "0.15.1.dev"
description = "Python Package for Uplift Modeling and Causal Inference with Machine Learning Algorithms"
readme = { file = "README.md", content-type = "text/markdown" }

Expand Down

0 comments on commit d41c40c

Please sign in to comment.