Skip to main content

Model

An experiment is a container in Labelbox that houses all of the information related to the iterative development of a specific model. It contains the data rows for training, model error analysis metrics, model versioning, and versioned snapshots (model runs) of data rows, predictions, etc, associated with a model’s development. Experiments are designed to help you track and compare all of the iterations associated with your model development.

Create a model

Get a model

Methods

Create a model run

Delete a model, and its model runs

Deleting a model also deletes its model runs. This action is permanent; it cannot be undone or rolled back.

Attributes

Get the basics

Get the model runs

Model run

A model run represents a single iteration within a model training experiment. Each model run contains a versioned snapshot of the data rows, annotations (predictions and/or ground truth), and data splits for each iteration within a model training experiment. Model runs make it easy for you to reproduce a model training experiment using different parameters. You can also use model runs to track and compare model runs trained on different data versions.

Get all model runs inside a Model

Create a model run

Creates a model run belonging to this model.

Get model run

Add data rows to a model run

Add data rows to a model run without any associated labels. You can use either data_row_id or global_key to specify the data rows.

Assign data row training, validation, and test split

Note that assign_data_rows_to_split only works on data rows or labels that are already in a model run. You can assign them to one of “TRAINING”, “VALIDATION”, “TEST” split.

Add labels to a model run

Adds data rows and labels to a model run. By adding labels, the associated data rows will also be upserted to the model run.
Alternatively, you can add all labels from a project to a Model run directly. This will also add all data rows from that project to the model run.

Export labels from a model run

See Export for Model Runs for more details and export JSON format.

Create, modify, and delete model run config to track hyperparameters.

Get model run config

Delete the model run config

Delete data rows from a model run

Delete model run