Skip to main content

sdm-learn: Self-Documenting Models

The document is the model.

PyPI Python checks docs

Labeled data of any kind goes to an LLM that writes a document in any format (Markdown, HTML, PDF, SVG, audio); a gate keeps or drops each revision; the same LLM reads the document to label new inputs

sdm trains a classifier that has no weights. An LLM writes a document that says how to tell the classes apart, the same LLM reads that document to classify new inputs, and a gate keeps a revision only when it does not lower accuracy on protected training rows. What you train is a readable file. What you read is what runs.

pip install 'sdm-learn[all]'
sdm ui                                    # the local app: run, watch, compare
sdm run --dataset cifar10                 # a markdown rulebook, plus the zero-shot control
sdm run --dataset pods --format html      # the same learner writing an HTML page
import sdm

data = sdm.dataset(
    train=[{"text": "wire me $500 today", "label": "spam"},
           {"text": "lunch at one?", "label": "ham"}],
    classes=("spam", "ham"),
    description="Each input is one email body.",
)
skill = sdm.train(data, algo="sdm", format="markdown")
print(skill.text)

Home: yulugan.com/sdm/home, the learned documents in the sdm ui page.

Documentation: yulugan.com/sdm: installation and providers, the UI, the command line, the Python API, skill formats, datasets (PODS, AI4Science, SR, and your own), the transfer and interpretability tools, results, and the changelog.

Reproductions with exact commands and numbers are under reproduce/. Copy settings.example.json to settings.json and add your provider, model, and key before the first run.

License

Apache-2.0

Metadata

Release files for sdm-learn 0.2.0

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

Source distribution (sdist)

Source distribution for sdm-learn 0.2.0
File Size Uploaded Provenance Actions
sdm_learn-0.2.0.tar.gz 167.8 kB With provenance Details for sdm_learn-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sdm-learn 0.2.0
File Interpreter ABI Platform Actions
sdm_learn-0.2.0-py3-none-any.whl Python 3 none any Details for sdm_learn-0.2.0-py3-none-any.whl

Total release size: 311.3 kB

Release files / sdm_learn-0.2.0.tar.gz

Download URL sdm_learn-0.2.0.tar.gz
Size 167.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f59468200cdc6b9d96573c4c96809caa9436c1fccc0310d9d36835f42dccf541
BLAKE2b-256 checksum
How to use checksums
1920fa49e53c9eb133ddd71e07e3f7a425ca2e312cfb754c50639e02961765df
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 14, 2026.

Transparency log

Release files / sdm_learn-0.2.0-py3-none-any.whl

Download URL sdm_learn-0.2.0-py3-none-any.whl
Size 143.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9e288abb7bbb926687a28ea3dd5b83acaf032ccc15b4a40f073f60fa4d409cb
BLAKE2b-256 checksum
How to use checksums
fff29064f2f0d59c0e97819e32bfb8fb872bc128a09761f748d778c7e31b26b6
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 14, 2026.

Transparency log

Security for sdm-learn 0.2.0

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 sdm_learn-0.2.0.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 Sep 14, 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