Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

GitHub last commit PyPI PyPI - Python Version Code Style Read the Docs GitHub

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.

Features

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.

Installation

To install the latest version of flippers, simply run:

pip install flippers

Quick Start

Documentation

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.

Example

  • 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)

Discussion

Troubleshooting

If you have any questions or issues with flippers, please consult the documentation or reach out in the GitHub issues page for support.

Contributing

flippers is an open-source project, and contributions are welcome!

  • wrench: A weak supervision library created by for benchmarking label models and weak supervision techniques. flippers uses its list of datasets as benchmarks.
  • snorkel: A cornerstone weak supervision library created by Snorkel in 2016, now sadly abandonned.

Metadata

Release files for flippers 0.0.1b5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flippers 0.0.1b5
File Size Uploaded Provenance Actions
flippers-0.0.1b5.tar.gz 1.5 MB Without provenance Details for flippers-0.0.1b5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flippers 0.0.1b5
File Interpreter ABI Platform Actions
flippers-0.0.1b5-py3-none-any.whl Python 3 none any Details for flippers-0.0.1b5-py3-none-any.whl

Total release size: 1.6 MB

Release files / flippers-0.0.1b5.tar.gz

Download URL flippers-0.0.1b5.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
57d6dd0e95b402232132c4f5694aa7b7222fc27b439adf246976880e8e0ed576
BLAKE2b-256 checksum
How to use checksums
6901bdd39a6790471218ccd780c70ccb169e00ff8225767deae0d88c436cf4b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release files / flippers-0.0.1b5-py3-none-any.whl

Download URL flippers-0.0.1b5-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db3a241553fedd96966a8a6a243470b08a19502c957c95659b931457c88efa6c
BLAKE2b-256 checksum
How to use checksums
d7a7318e3b2a0d582b72b2ea8b0b5a19e5df7319a605a30a1788882fad35d555
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Security for flippers 0.0.1b5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page