snorkel.slicing.SFApplier

class snorkel.slicing.SFApplier(lfs)[source]

Bases: snorkel.labeling.apply.core.LFApplier

SF applier for a list of data points.

See snorkel.labeling.core.LFApplier for details.

__init__(lfs)[source]

Initialize self. See help(type(self)) for accurate signature.

Return type

None

Methods

__init__(lfs)

Initialize self.

apply(data_points[, progress_bar])

Label list of data points or a NumPy array with LFs.

apply(data_points, progress_bar=True)[source]

Label list of data points or a NumPy array with LFs.

Parameters
  • data_points (Union[Sequence[Any], ndarray]) – List of data points or NumPy array to be labeled by LFs

  • progress_bar (bool) – Display a progress bar?

Returns

Matrix of labels emitted by LFs

Return type

np.ndarray