Skip to content

Commit

Permalink
Fix call density test in external codebase.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 676041630
  • Loading branch information
sdenton4 authored and copybara-github committed Sep 18, 2024
1 parent beb103f commit de42ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chirp/inference/tests/call_density_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from chirp.inference import call_density
from etils import epath
import numpy as np
import sklearn
from sklearn import metrics

from absl.testing import absltest

Expand Down Expand Up @@ -116,7 +116,7 @@ def test_estimate_roc_auc(self):
noise_scores = np.random.normal(size=num_samples)
labels = np.random.randint(0, 2, size=num_samples)
scores = noise_mu * noise_scores + (1 - noise_mu) * labels
gt_roc_auc = sklearn.metrics.roc_auc_score(labels, scores)
gt_roc_auc = metrics.roc_auc_score(labels, scores)

# Generate some validation examples.
quantile_bounds = np.array([0.0, 0.5, 0.75, 0.825, 1.0])
Expand Down

0 comments on commit de42ad3

Please sign in to comment.