Skip to main content
Version: 25.7

snorkelai.sdk.client.gts.create_ground_truth_version

snorkelai.sdk.client.gts.create_ground_truth_version(node, name, description=<snorkelai.sdk.client_v3.tdm.types.Unset object>)

Create a new ground truth version for a node. Creating a ground truth version will yield an integer UID that identifies the ground truth version. The snorkelai.sdk.client.load_ground_truth_version function can then be used to restore a previously created ground truth version. Note that ground truth versions are only available in the node the ground truth version was created for.

Examples

>>> sf.create_ground_truth_version(node=1, name="my_gt_version", description="my description")
{'gt_version_uid': 1}

Parameters

NameTypeDefaultInfo
nodeintThe UID of the node to create a GT version for.
namestrName of the new ground truth version.
descriptionUnion[Unset, str]<snorkelai.sdk.client_v3.tdm.types.Unset object at 0x7ffffc3d9720>An optional description of the new ground truth version.

Returns

gt_version_uid: The UID of the new ground truth version

Return type

Dict[str, int]