Skip to content
Merged
Show file tree
Hide file tree
Changes from 60 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
70904c3
Create power_ppi.py
Michael-Howes Aug 6, 2024
12ece40
Update power_ppi.py
Michael-Howes Aug 6, 2024
03199e9
create power analysis function mean estimation
Michael-Howes Aug 6, 2024
eb7c7bd
Update power_ppi.py
Michael-Howes Aug 6, 2024
c307a5a
Create power_analysis.ipynb
Michael-Howes Aug 6, 2024
90bad83
update power analysis to return dict
Michael-Howes Aug 6, 2024
a27fb59
add ols power analysis
Michael-Howes Aug 8, 2024
904f410
add ols example
Michael-Howes Aug 8, 2024
4edb6b9
Update power_analysis.ipynb
Michael-Howes Aug 8, 2024
42fb6f4
add logisitic regression power analysis
Michael-Howes Aug 8, 2024
faa8703
moved power analysis
Michael-Howes Aug 13, 2024
00973f0
Update power_ppi.py
Michael-Howes Aug 13, 2024
8139a8f
add poisson power
Michael-Howes Aug 13, 2024
6eb4f2d
add Poisson examples
Michael-Howes Aug 13, 2024
3b2bd86
added ppi_power for user supplied rho
Michael-Howes Sep 19, 2024
88957c3
Update power_analysis.ipynb
Michael-Howes Sep 19, 2024
6635528
update .gitignore
Michael-Howes Sep 19, 2024
a46b0b3
added n_max constraint
Michael-Howes Oct 8, 2024
d06f02d
add warning for cheapest pair
Michael-Howes Oct 8, 2024
9c0c822
run notebook
Michael-Howes Oct 8, 2024
4899ace
Update power_ppi.py
Michael-Howes Oct 8, 2024
6d4a77d
Merge branch 'aangelopoulos:main' into main
Michael-Howes Oct 8, 2024
7a4f608
update power analysis
Michael-Howes Oct 8, 2024
a923b87
update notebook
Michael-Howes Oct 9, 2024
9289979
init notebook
davidbroska Oct 9, 2024
51e4f3f
update power analysis notebook
Michael-Howes Oct 9, 2024
06d72d4
Merge branch 'main' of https://github.com/Michael-Howes/ppi_py
Michael-Howes Oct 9, 2024
0f1e951
add power tests
Michael-Howes Oct 11, 2024
2b7fa2f
add moral machine data and notebook with AMCE function
davidbroska Oct 11, 2024
6f75e73
move AMCE function to utils
davidbroska Oct 11, 2024
797643f
Update test_power_analysis.py
Michael-Howes Oct 14, 2024
357eae5
Update power_ppi.py
Michael-Howes Oct 14, 2024
48385b1
Update power_analysis.ipynb
Michael-Howes Oct 14, 2024
3e03df0
add seed value
Michael-Howes Oct 15, 2024
b2f04b2
reformatting with black
Michael-Howes Oct 15, 2024
d6b0056
reformat with black
Michael-Howes Oct 15, 2024
56d8f06
Work on documentation
Michael-Howes Oct 16, 2024
6f59ea3
update documentation
Michael-Howes Oct 16, 2024
40753d8
fix typos
Michael-Howes Oct 16, 2024
1296f02
small edits
davidbroska Oct 16, 2024
29aec95
unify terminology
davidbroska Oct 16, 2024
606d415
reformat with black
Michael-Howes Oct 17, 2024
34833c4
reformat with black
Michael-Howes Oct 17, 2024
9066071
remove moral machine notebook
Michael-Howes Oct 17, 2024
244e4f6
remove moral machine function from utils
Michael-Howes Oct 17, 2024
d1703c0
update gitignore
Michael-Howes Oct 17, 2024
ddabddb
update .gitignore
Michael-Howes Oct 17, 2024
cbb0951
add example .gitignore
Michael-Howes Oct 17, 2024
295cb82
remove moral machine function from utils
Michael-Howes Oct 17, 2024
3b0387b
use safe_expit
Michael-Howes Oct 17, 2024
b820440
update references
Michael-Howes Oct 17, 2024
21b8252
update power analysis
Michael-Howes Oct 18, 2024
7c727d3
update power analysis example
Michael-Howes Oct 18, 2024
b342d32
update power analysis
Michael-Howes Oct 18, 2024
425b798
update power analysis example
Michael-Howes Oct 18, 2024
76d4b8c
rename power_ppi to ppi_power_analysis
Michael-Howes Oct 18, 2024
46f16ab
reformat with black
Michael-Howes Oct 18, 2024
775e35a
update power analysis to used desired effective sample size instead o…
Michael-Howes Dec 2, 2024
0d412d7
update power analysis tests
Michael-Howes Dec 2, 2024
37cb62f
reformat with black
Michael-Howes Dec 2, 2024
cbe850c
[black for formatting]
aangelopoulos Dec 22, 2024
5b801f0
[minor] made a quick fix to the notebook and also added credit to the…
aangelopoulos Dec 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
971 changes: 971 additions & 0 deletions examples/power_analysis.ipynb
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed two errors:

First, np.concat does not exist. Made it np.concatenate.

Second, was getting a nan error. Added np.nan_to_num. It is a kluge to make the notebook work. Please feel free to add a different fix if there's one @Michael-Howes .

image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, reverted the second change np.nan_to_num because it looks like it was caused by some corrupted data on my end. Re-downloading the dataset fixed it.

Large diffs are not rendered by default.

Loading
Loading