Skip to main content

OpenOutLearn Logo

OpenOutLearn

A GP regression + BALD active-learning engine over text embeddings — the scoring mechanism shared by OpenOutFind's lead qualifier and OpenOutNews's article qualifier, extracted once both had converged on the same code under two different domain labels. In production it picks the leads behind openoutreach.app, where ten are free.

GPBaldQualifier fits an sklearn Pipeline (StandardScaler -> exact GaussianProcessRegressor) on whatever labelled embeddings you give it, and scores new candidates two ways: predict_probs (P(f > 0.5) from the GP posterior, for exploitation) and compute_bald (information gain via MC sampling, for exploration). acquisition_mode/acquisition_scores pick between the two by the current label balance — exploit once real negatives outnumber real positives, explore while the classes are still even.

openoutlearn.calibration turns a score into a decision. From verdicts on a sample the model did not choose (stratified by score), fit_rate_curve fits the fit rate at each score as an isotonic regression; break_even_rate prices the alternative — searching for new candidates and judging those worth it — and lowest_bar returns the lowest score whose fit rate beats it. Costs are in whatever unit the caller uses; only their ratio matters. Score the sample with GPBaldQualifier.out_of_fold_probs so no score comes from a fit that saw its own label.

This is a pure library: no store, no ORM, no CLI, no persistence beyond the fastembed model download. Each domain wires its own labels, its own store, and its own interactive surface on top — see openoutlearn/qualifier.py's docstring for what's deliberately not here (cold-start anchors, class balancing) and why those stay domain-side.

Install

pip install openoutlearn

Use

import numpy as np
from pathlib import Path
from openoutlearn import GPBaldQualifier, embed_texts

cache_dir = Path.home() / ".cache" / "openoutlearn" / "fastembed"
embeddings = embed_texts(["a labelled example", "another one"], cache_dir=cache_dir)

q = GPBaldQualifier(embedding_dim=384)
q.warm_start(embeddings, np.array([1, 0]))

candidates = embed_texts(["a new candidate"], cache_dir=cache_dir)
mode, scores = q.acquisition_scores(candidates)

Test

pip install -e ".[dev]"
pytest

Metadata

Release files for openoutlearn 0.1.8

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

Source distribution (sdist)

Source distribution for openoutlearn 0.1.8
File Size Uploaded Provenance Actions
openoutlearn-0.1.8.tar.gz 54.4 kB With provenance Details for openoutlearn-0.1.8.tar.gz

Built distribution (wheel)

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

Total release size: 78.0 kB

Release files / openoutlearn-0.1.8.tar.gz

Download URL openoutlearn-0.1.8.tar.gz
Size 54.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2c0b48b300de864f078665c0d458b268bae6f88aedad18f9a353c6022639c6b6
BLAKE2b-256 checksum
How to use checksums
06241a811803cb6e56e33f3791aca62af096ec99592c2ac831998677facbee36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / openoutlearn-0.1.8-py3-none-any.whl

Download URL openoutlearn-0.1.8-py3-none-any.whl
Size 23.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f1183560f8ae2ab4d98d0251b29c428620a46ed970bce6cbc8db7aacfa5f396
BLAKE2b-256 checksum
How to use checksums
042d894810d2e7eceba3ead5ea28a31657c9e3a752f907f644e1601c720f15ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for openoutlearn 0.1.8

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openoutlearn-0.1.8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

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