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.
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.
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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openoutlearn-0.1.2.tar.gz | 21.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openoutlearn-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.5 kB
Release files / openoutlearn-0.1.2.tar.gz
| Download URL | openoutlearn-0.1.2.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
370d6a0196d94f21659c4898f6267ca76b89311d4c6e396d54803513a6fcb4bc
|
|
BLAKE2b-256 checksum How to use checksums |
a06322f76e780041e18d93a1c6914dca8a154a0f4a90e5a0d59706695da561b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 8, 2026.
Transparency logRelease files / openoutlearn-0.1.2-py3-none-any.whl
| Download URL | openoutlearn-0.1.2-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
061424748eca3b320601c1a6e68e6069212275038643b93cbf816e5940f8cd1a
|
|
BLAKE2b-256 checksum How to use checksums |
64ddc2693ba5ac92616be611579848c02064e786856ad61aaccc5488aacde037
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 8, 2026.
Transparency log