snorkelflow.client.lfs.add_scatterplot_lf
- snorkelflow.client.lfs.add_scatterplot_lf(node, ax, label_str, name=None, split='dev', apply_timeout_secs=None)
Create a bounding rectangle LF from the current view of a scatterplot.
The name of the x axis and y axis will be used as the field names.
Parameters
Parameters
Raises
Raises
ValueError – If label_str is not in the set of valid labels for task
Return type
Return type
Dict
[str
,Any
]
Name Type Default Info node int
UID of the node. ax axis
A matplotlib.pyplot.axis object containing information about the plot to create a bounding box from (usually acquired through plot_scatterplot()). label_str str
Label assigned if the labeling function votes. name Optional[str]
None
Name of the labeling function. split str
'dev'
Split to be loaded. Default to "dev"
.apply_timeout_secs Optional[float]
None
Optional param to specify timeout for LF apply.