Skip to content

Commit 06a9680

Browse files
author
Vinjai Vale
committed
Merge branch 'vinjai/autocurate' of github.com:scaleapi/nucleus-python-client into vinjai/autocurate
2 parents 621925b + 64dd180 commit 06a9680

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

nucleus/autocurate.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,9 @@
88
from nucleus.job import AsyncJob
99

1010

11-
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}"
15-
# TODO: support multiple model runs
16-
assert (
17-
len(model_runs) == 1
18-
), "Entropy currently not supported for multiple model runs"
19-
model_run_ids = [model_run.model_run_id for model_run in model_runs]
20-
dataset_id = model_runs[0].dataset_id
11+
def entropy(name, model_run, client):
12+
model_run_ids = [model_run.model_run_id]
13+
dataset_id = model_run.dataset_id
2114
response = client.make_request(
2215
payload={"modelRunIds": model_run_ids},
2316
route=f"autocurate/{dataset_id}/single_model_entropy/{name}",

0 commit comments

Comments
 (0)