Skip to content

Commit d4c1e31

Browse files
author
Matt Sokoloff
committed
remove predictions and prediction models
1 parent b11f62e commit d4c1e31

File tree

6 files changed

+1
-83
lines changed

6 files changed

+1
-83
lines changed

docs/source/index.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,6 @@ Organization
102102
:members:
103103
:show-inheritance:
104104

105-
Prediction
106-
---------------------------------
107-
108-
.. automodule:: labelbox.schema.prediction
109-
:members: Prediction
110-
:exclude-members: PredictionModel
111-
:show-inheritance:
112-
113-
PredictionModel
114-
---------------------------------
115-
.. automodule:: labelbox.schema.prediction
116-
:members: PredictionModel
117-
:exclude-members: Prediction
118-
:show-inheritance:
119-
:noindex:
120-
121105
Project
122106
------------------------------
123107

labelbox/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from labelbox.schema.asset_metadata import AssetMetadata
1616
from labelbox.schema.asset_attachment import AssetAttachment
1717
from labelbox.schema.webhook import Webhook
18-
from labelbox.schema.prediction import Prediction, PredictionModel
1918
from labelbox.schema.ontology import Ontology, OntologyBuilder, Classification, Option, Tool
2019
from labelbox.schema.role import Role, ProjectRole
2120
from labelbox.schema.invite import Invite, InviteLimit

labelbox/schema/data_row.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class DataRow(DbObject, Updateable, BulkDeletable):
2525
labels (Relationship): `ToMany` relationship to Label
2626
attachments (Relationship) `ToMany` relationship with AssetAttachment
2727
metadata (Relationship): This Relationship is Deprecated. Please use `DataRow.attachments()` instead
28-
predictions (Relationship): `ToMany` relationship to Prediction
2928
"""
3029
external_id = Field.String("external_id")
3130
row_data = Field.String("row_data")
@@ -47,7 +46,6 @@ class DataRow(DbObject, Updateable, BulkDeletable):
4746
"`DataRow.metadata()` is deprecated. Use `DataRow.attachments()` instead."
4847
)
4948
attachments = Relationship.ToMany("AssetAttachment", False, "attachments")
50-
predictions = Relationship.ToMany("Prediction", False)
5149

5250
supported_meta_types = supported_attachment_types = {
5351
attachment_type.value

labelbox/schema/prediction.py

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

labelbox/schema/project.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ class Project(DbObject, Updateable, Deletable):
5050
labeling_parameter_overrides (Relationship): `ToMany` relationship to LabelingParameterOverride
5151
webhooks (Relationship): `ToMany` relationship to Webhook
5252
benchmarks (Relationship): `ToMany` relationship to Benchmark
53-
active_prediction_model (Relationship): `ToOne` relationship to PredictionModel
54-
predictions (Relationship): `ToMany` relationship to Prediction
5553
ontology (Relationship): `ToOne` relationship to Ontology
5654
"""
5755
name = Field.String("name")
@@ -74,9 +72,6 @@ class Project(DbObject, Updateable, Deletable):
7472
"LabelingParameterOverride", False, "labeling_parameter_overrides")
7573
webhooks = Relationship.ToMany("Webhook", False)
7674
benchmarks = Relationship.ToMany("Benchmark", False)
77-
active_prediction_model = Relationship.ToOne("PredictionModel", False,
78-
"active_prediction_model")
79-
predictions = Relationship.ToMany("Prediction", False)
8075
ontology = Relationship.ToOne("Ontology", True)
8176

8277
def members(self):

tools/api_reference_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
labelbox.Project, labelbox.Dataset, labelbox.DataRow, labelbox.Label,
4343
labelbox.AssetMetadata, labelbox.LabelingFrontend, labelbox.Task,
4444
labelbox.Webhook, labelbox.User, labelbox.Organization, labelbox.Review,
45-
labelbox.Prediction, labelbox.PredictionModel, LabelerPerformance
45+
LabelerPerformance
4646
]
4747

4848
ERROR_CLASSES = [LabelboxError] + LabelboxError.__subclasses__()

0 commit comments

Comments
 (0)