Skip to main content
Version: 25.4

snorkelflow.client.nodes.get_node_label_map

warning

This is a beta function in 25.4. Beta features may have known gaps or bugs, but are functional workflows and eligible for Snorkel Support. To access beta features, contact Snorkel Support to enable the feature flag for your Snorkel-hosted instance.

snorkelflow.client.nodes.get_node_label_map(node_uid)

Returns the label map for a given model node. The label map is a mapping from label strings to their integer representations.

Parameters

NameTypeDefaultInfo
node_uidintThe UID corresponding to a Model node.

Returns

The label map, mapping each label string to its corresponding integer value

Return type

Dict[str, int]