Label

class labelbox.schema.label.Label(*args, **kwargs)[source]

Bases: DbObject, Updateable, BulkDeletable

Label represents an assessment on a DataRow. For example one label could contain 100 bounding boxes (annotations).

label
Type:

str

seconds_to_label
Type:

float

agreement
Type:

float

benchmark_agreement
Type:

float

is_benchmark_reference
Type:

bool

project

ToOne relationship to Project

Type:

Relationship

data_row

ToOne relationship to DataRow

Type:

Relationship

reviews

ToMany relationship to Review

Type:

Relationship

created_by

ToOne relationship to User

Type:

Relationship

static bulk_delete(labels) None[source]

Deletes all the given Labels.

Parameters:

labels (list of Label) – The Labels to delete.

create_benchmark() Benchmark[source]

Creates a Benchmark for this Label.

Returns:

The newly created Benchmark.

create_review(**kwargs) Review[source]

Creates a Review for this label.

Parameters:

**kwargs – Review attributes. At a minimum, a Review.score field value must be provided.