Skip to content

Commit 7d6eb88

Browse files
committed
Add warning
1 parent 69c131d commit 7d6eb88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

labelbox/schema/model_run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,14 @@ def upsert_predictions_and_send_to_project(
152152
])
153153
mea_to_mal_data_rows = list(
154154
mea_to_mal_data_rows_set)[:DATAROWS_IMPORT_LIMIT]
155+
logger.warning(
156+
f"Got {len(mea_to_mal_data_rows_set)} data rows to import, trimmed down to {DATAROWS_IMPORT_LIMIT} data rows"
157+
)
158+
155159
batch = project.create_batch(name, mea_to_mal_data_rows, priority)
156160
mal_prediction_import = Entity.MALPredictionImport.create_for_model_run_data_rows(
157161
data_row_ids=mea_to_mal_data_rows, project_id=project_id, **kwargs)
158-
return mea_prediction_import, batch, mal_prediction_import
162+
return import_job, batch, mal_prediction_import
159163

160164
def add_predictions(
161165
self,

0 commit comments

Comments
 (0)