We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f99dd commit 64dd180Copy full SHA for 64dd180
1 file changed
nucleus/autocurate.py
@@ -8,16 +8,9 @@
8
from nucleus.job import AsyncJob
9
10
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
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
+def entropy(name, model_run, client):
+ model_run_ids = [model_run.model_run_id]
+ dataset_id = model_run.dataset_id
21
response = client.make_request(
22
payload={"modelRunIds": model_run_ids},
23
route=f"autocurate/{dataset_id}/single_model_entropy/{name}",
0 commit comments