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 intUID of the node. ax axisA matplotlib.pyplot.axis object containing information about the plot to create a bounding box from (usually acquired through plot_scatterplot()). label_str strLabel assigned if the labeling function votes. name Optional[str]NoneName of the labeling function. split str'dev'Split to be loaded. Default to "dev".apply_timeout_secs Optional[float]NoneOptional param to specify timeout for LF apply.