Skip to content

Commit 4cdcdc5

Browse files
author
Matt Sokoloff
committed
remove prediction_model
1 parent 3369bbb commit 4cdcdc5

File tree

2 files changed

+0
-59
lines changed

2 files changed

+0
-59
lines changed

labelbox/schema/project.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -537,28 +537,6 @@ def extend_reservations(self, queue_type):
537537
res = self.client.execute(query_str, {id_param: self.uid})
538538
return res["extendReservations"]
539539

540-
def create_prediction_model(self, name, version):
541-
""" Creates a PredictionModel connected to a Legacy Editor Project.
542-
543-
Args:
544-
name (str): The new PredictionModel's name.
545-
version (int): The new PredictionModel's version.
546-
Returns:
547-
A newly created PredictionModel.
548-
"""
549-
550-
logger.warning(
551-
"`create_prediction_model` is deprecated and is not compatible with the new editor."
552-
)
553-
554-
PM = Entity.PredictionModel
555-
model = self.client._create(PM, {
556-
PM.name.name: name,
557-
PM.version.name: version
558-
})
559-
self.active_prediction_model.connect(model)
560-
return model
561-
562540
def create_prediction(self, label, data_row, prediction_model=None):
563541
""" Creates a Prediction within a Legacy Editor Project. Not supported
564542
in the new Editor.

tests/integration/test_predictions.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)