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
Parameters
Returns
Returns
gt_version_uid: The UID of the new ground truth version
Return type
Return type
Dict[str, int]
Name Type Default Info node int
The UID of the node to create a GT version for. name str
Name of the new ground truth version. description Union[Unset, str]
<snorkelai.sdk.client_v3.tdm.types.Unset object at 0x7ffffc3d9720>
An optional description of the new ground truth version.