Skip to content

Commit

Permalink
update consts
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcbertoldo committed Nov 3, 2022
1 parent 48188d5 commit 1e5f130
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/torchmetrics/classification/precision_recall_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
from torchmetrics.utilities.data import dim_zero_cat

DYNAMIC_THRESHOLDS_MODE_STR = "dynamic"
_DYNAMIC_THRESHOLDS_NBINS = 3 * 10**3
_DYNAMIC_THRESHOLDS_MIN_NSAMPLES_PERBIN = 4 * 10**3
_DYNAMIC_THRESHOLDS_NBINS = 10**4
_DYNAMIC_THRESHOLDS_MIN_NSAMPLES_PERBIN = 10**4
_DYNAMIC_THRESHOLDS_MIN_NSAMPLES = _DYNAMIC_THRESHOLDS_MIN_NSAMPLES_PERBIN * _DYNAMIC_THRESHOLDS_NBINS
_DYNAMIC_THRESHOLDS_MAX_NSAMPLES_QUANTILE_ESTIMATION = 12 * 10**6
_DYNAMIC_THRESHOLDS_MAX_NSAMPLES_QUANTILE_ESTIMATION = 10**7


def _validate_budget(budget: Optional[int]) -> int:
Expand Down

0 comments on commit 1e5f130

Please sign in to comment.