Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanuc committed Nov 19, 2023
1 parent d42f6ac commit c856fcb
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions build/lib/zedstat/zedstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ def scoretoprobability(self, score, regen=True, **kwargs):
raise ValueError('PPV not in columns or index')

def compute_val(score):
if score is None:
return None
if score > df.threshold.max():
val = df.ppv.values.max()
else:
Expand Down
Binary file removed dist/zedstat-0.0.133.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added dist/zedstat-0.0.134.tar.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions docs/zedstat.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ <h1 class="title">Module <code>zedstat.zedstat</code></h1>
raise ValueError(&#39;PPV not in columns or index&#39;)

def compute_val(score):
if score is None:
return None
if score &gt; df.threshold.max():
val = df.ppv.values.max()
else:
Expand Down Expand Up @@ -1290,6 +1292,8 @@ <h2 id="args">Args</h2>
raise ValueError(&#39;PPV not in columns or index&#39;)

def compute_val(score):
if score is None:
return None
if score &gt; df.threshold.max():
val = df.ppv.values.max()
else:
Expand Down Expand Up @@ -2228,6 +2232,8 @@ <h2 id="return">Return</h2>
raise ValueError(&#39;PPV not in columns or index&#39;)

def compute_val(score):
if score is None:
return None
if score &gt; df.threshold.max():
val = df.ppv.values.max()
else:
Expand Down
6 changes: 6 additions & 0 deletions docs/zedstat/zedstat.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ <h1 class="title">Module <code>zedstat.zedstat</code></h1>
raise ValueError(&#39;PPV not in columns or index&#39;)

def compute_val(score):
if score is None:
return None
if score &gt; df.threshold.max():
val = df.ppv.values.max()
else:
Expand Down Expand Up @@ -1290,6 +1292,8 @@ <h2 id="args">Args</h2>
raise ValueError(&#39;PPV not in columns or index&#39;)

def compute_val(score):
if score is None:
return None
if score &gt; df.threshold.max():
val = df.ppv.values.max()
else:
Expand Down Expand Up @@ -2228,6 +2232,8 @@ <h2 id="return">Return</h2>
raise ValueError(&#39;PPV not in columns or index&#39;)

def compute_val(score):
if score is None:
return None
if score &gt; df.threshold.max():
val = df.ppv.values.max()
else:
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.133'
__version__ = '0.0.134'
4 changes: 2 additions & 2 deletions zedstat.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Metadata-Version: 2.1
Name: zedstat
Version: 0.0.133
Version: 0.0.134
Summary: Statistics tools for ML models and deployment
Home-page: https://github.com/zeroknowledgediscovery/zedstat
Download-URL: https://github.com/zeroknowledgediscovery/zedstat/archive/0.0.133.tar.gz
Download-URL: https://github.com/zeroknowledgediscovery/zedstat/archive/0.0.134.tar.gz
Author: zed.uchicago.edu
Author-email: ishanu@uchicago.edu
License: LICENSE
Expand Down
Binary file modified zedstat/__pycache__/zedstat.cpython-310.pyc
Binary file not shown.
2 changes: 2 additions & 0 deletions zedstat/zedstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ def scoretoprobability(self, score, regen=True, **kwargs):
raise ValueError('PPV not in columns or index')

def compute_val(score):
if score is None:
return None
if score > df.threshold.max():
val = df.ppv.values.max()
else:
Expand Down

0 comments on commit c856fcb

Please sign in to comment.