2.3.15 Sessions (Segmenters)

A session separates your Segments into a group. The session allows you to work on multiple branches of the same data set. In the server APIs, the related session method is called Segmenter. There are two types of sessions:

  1. Manual: Create segments by manually setting the start and end locations for each event

  2. Auto: Use a segmentation algorithm to automatically detect the start and end locations for each event

Examples:

# gets the set of labels associated with this project
client.project.list_segmenters()
class mplabml.datamanager.segmenter. Segmenter(connection, project)

Base class for a segmenter object.

delete()

Calls the REST API and deletes the object from the server

insert()

Calls the REST API and inserts a metadata object onto the server using the local object’s properties

property name

The name property of the metadata object

refresh()

Calls the REST API and populates the local object’s properties from the server

update()

Calls the REST API and updates the object on the server

property uuid

Auto generated unique identifier for the metadata object

class mplabml.datamanager.segmenter. SegmenterSet(connection, project, initialize_set=True)

Base class for a segmenter object

property get_set_url

Replace this with the url to call to pull down the set objects