Skip to content

Commit

Permalink
Merge pull request #37 from kenki931128/develop
Browse files Browse the repository at this point in the history
develop into main v0.4.2
  • Loading branch information
kenki931128 authored Apr 22, 2024
2 parents 8973faf + fed031f commit 94e1357
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions examples/3 - sensitivity check.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 19/19 [00:00<00:00, 163.48it/s]\n"
"100%|██████████████████████████████████████████| 19/19 [00:00<00:00, 193.39it/s]\n"
]
}
],
Expand Down Expand Up @@ -106,13 +106,13 @@
"name": "stderr",
"output_type": "stream",
"text": [
"uplift: 1.0, p value: 0.3800761193284167. \n",
"uplift: 1.01, p value: 0.2294051992220436. \n",
"uplift: 1.02, p value: 0.1296003326679382. \n",
"uplift: 1.03, p value: 0.06916294574846259. \n",
"uplift: 1.04, p value: 0.03522837222393027. \n",
"uplift: 1.05, p value: 0.017306846430708796. \n",
" 2%|██▊ | 5/200 [00:02<01:26, 2.24it/s]\n"
"uplift: 1.00, p value: 0.3800761193284167. \n",
"uplift: 1.01, p value: 0.2294051992220436. \n",
"uplift: 1.02, p value: 0.1296003326679382. \n",
"uplift: 1.03, p value: 0.06916294574846259. \n",
"uplift: 1.04, p value: 0.03522837222393027. \n",
"uplift: 1.05, p value: 0.017306846430708796. \n",
" 2%|█ | 5/200 [00:02<01:34, 2.06it/s]\n"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "synthx"
version = "0.4.1"
version = "0.4.2"
description = "A Python Library for Advanced Synthetic Control Analysis"
authors = ["kenki931128 <kenki.nkmr@gmail.com>"]
license = "MIT License"
Expand Down
2 changes: 1 addition & 1 deletion synthx/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def sensitivity_check(
continue

p_value = sx.stats.calc_p_value(sc.estimate_effects(), effects_placebo)
tqdm.write(f'uplift: {uplift}, p value: {p_value}.', file=sys.stderr)
tqdm.write(f'uplift: {uplift:.2f}, p value: {p_value}.', file=sys.stderr)
if p_value <= p_value_target:
return uplift

Expand Down

0 comments on commit 94e1357

Please sign in to comment.