Skip to main content

cabin

cabin is a set of simple neural network classes (and custom loss functions) designed to learn selection cuts for tabular data using gradient descent. A full description of the cabin approach to learning cuts is in:

Learning Selection Cuts with Gradients

The OneToOneLinear class models pass/fail requirements on input features as a sigmoid activation applied to a linear transformation of the input features. The "cut" can then be extracted from the weight and bias of the linear transformation, which puts the optimal separation point between signal and background at 0. The output of the network modeling the full set of cuts on input features is the product of all sigmoid-activated linear transformations of the inputs. The output is bounded in the range [0,1] and resembles a normal classification network result, with events failing any one cut having output scores near zero, and events passing all cuts having scores near 1. A loss function (loss_fn) included in the cabin library permits a OneToOneLinear cut network to be tuned to optimize background rejection for a specified target signal efficiency.

cabin network illustration

The EfficiencyScanNetwork class is composed of a collection of OneToOneLinear objects that targets a range of signal efficiencies. Another loss function (effic_loss_fn) can be used to ensure that cuts vary smoothly across different efficiency working points.

The libraries were developed with high-energy physics applications in mind, but the approach can be applied to any binary classification problem.

Metadata

Release files for cabin 0.3.3

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

Source distribution (sdist)

Source distribution for cabin 0.3.3
File Size Uploaded Provenance
cabin-0.3.3.tar.gz 62.3 kB With provenance Details

Built distribution (wheel)

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

Total release size: 73.4 kB

Release files / cabin-0.3.3.tar.gz

Download URL cabin-0.3.3.tar.gz
Size 62.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4f56580a9267e8e85190d2687b1d06f55fd47fe85521fa94f834e35ea7e35736
BLAKE2b-256 checksum
How to use checksums
b74884e5c496ed49fc35c881a99193cc984a3a93e50d42517c3964c5cfa72146
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 10, 2025.

Transparency log

Release files / cabin-0.3.3-py3-none-any.whl

Download URL cabin-0.3.3-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ff39281798e56da9f0515a0ba28d66309cfdbac96884f059bbf636f71226926
BLAKE2b-256 checksum
How to use checksums
ec9cf50908ce936fcfa7388ab4070a848b6e1e996dbfba571ce9a349deba5648
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 10, 2025.

Transparency log

Security for cabin 0.3.3

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cabin-0.3.3.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 10, 2025.

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