Snorkel Utils PackageΒΆ

General machine learning utilities shared across Snorkel.

filter_labels

Filter out examples from arrays based on specified labels to filter.

preds_to_probs

Convert an array of predictions into an array of probabilistic labels.

probs_to_preds

Convert an array of probabilistic labels into an array of predictions.

to_int_label_array

Convert an array to a (possibly flattened) array of ints.