flippers
is a Python library for weak supervision, which allows you to leverage your domain knowledge, heuristics and other weak supervision sources to generate high-quality labels for your training data.
flippers
includes a number of features for weak supervision, including:
- Simple tools to analyse your labeling functions,
- Multiple label models including a from-scratch implementation of the label model used in the
snorkel
library and featuring enhanced ways to predict probabilities, - An extensive documentation with tutorials and an API reference.
To install the latest version of flippers
, simply run:
pip install flippers
To quickly get started with flippers
, you can begin by exploring the documentation and running through the examples provided. The examples cover a variety of use cases and techniques, which can help you to get a feel for how to apply flippers
to your own projects.
- Analyzing your labeling functions:
analysis = flippers.summary(L_train)
- Training a Label Model and doing inference:
label_model = flippers.models.SnorkelModel(polarities, class_balances)
label_model.fit(L_train)
label_model.predict_proba(L)
If you have any questions or issues with flippers
, please consult the documentation or reach out in the GitHub issues page for support.
flippers
is an open-source project, and contributions are welcome!