Skip to content

Commit 6c9311d

Browse files
author
Vinjai Vale
committed
Require model runs to have the same dataset ids
1 parent 23af26c commit 6c9311d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nucleus/autocurate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010

1111
def entropy(name, model_runs, client):
12+
assert (
13+
len({model_run.dataset_id for model_run in model_runs}) == 1
14+
), f"Model runs have conflicting dataset ids: {model_runs}"
1215
model_run_ids = [model_run.model_run_id for model_run in model_runs]
1316
dataset_id = model_runs[0].dataset_id
1417
response = client.make_request(

0 commit comments

Comments
 (0)