Skip to content

Commit

Permalink
clean up docstring example
Browse files Browse the repository at this point in the history
  • Loading branch information
rpreen committed Jun 11, 2024
1 parent 3afc31b commit d094655
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions aisdc/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,7 @@ def min_max_disc(
--------
>>> y = np.random.choice(2, 100)
>>> yp = np.random.rand(100)
>>> (
... maxd,
... mind,
... mmd,
... pval,
... ) = min_max_desc(
... y,
... yp,
... xprop=0.2,
... logp=True,
... )
>>> maxd, mind, mmd, pval = min_max_desc(y, yp, xprop=0.2, logp=True)
"""
n_examples = int(np.ceil(len(y_true) * x_prop))
pos_frequency = np.mean(y_true) # average frequency
Expand Down

0 comments on commit d094655

Please sign in to comment.