Skip to main content
Version: 25.4

snorkelflow.client.lfs.execute_lfs

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.lfs.execute_lfs(node_uid, pkg_uid, df)

Given a package_uid, node_uid and a df => retrieve the LFs from the package and run it over the data in the df

Parameters

NameTypeDefaultInfo
node_uidintUID of the node at which LFs are packaged.
pkg_uidintUID of the LF package whose LFs are applied to a dataframe.
dfDataFrameDataframe LFs are applied over.

Returns

Dataframe with an additional column containing LF vote for each LF

Return type

pd.DataFrame