File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 8
8
from nucleus .job import AsyncJob
9
9
10
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
- 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
21
14
response = client .make_request (
22
15
payload = {"modelRunIds" : model_run_ids },
23
16
route = f"autocurate/{ dataset_id } /single_model_entropy/{ name } " ,
You can’t perform that action at this time.
0 commit comments