Skip to main content

tree-again

Interpretable decision tree chains with black box deferral. Includes the WeightedSeparable and CLARITree backends in one Python package.

Installation

From a source checkout:

python -m pip install .

From PyPI:

python -m pip install tree-again

Source installations require a C++17 compiler and Python development headers. Pip installs the build dependencies, including pybind11 and Eigen headers. Neither a separate CLARITree installation nor CMake is required. Compatible prebuilt wheels do not require a compiler on the user's machine.

Usage

from tree_again import MDTChain, CLARITree, WeightedSeparable

A small binary classification example:

import numpy as np
from tree_again import MDTChain

X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]] * 8, dtype=np.uint8)
y = X[:, 0]

model = MDTChain(
    training_method="top_down",
    c=0.5,
    defer_lambda_strength=1.0,
    lambda_leaf=0.001,
    eta_defer=1.0,
    depth_budget=2,
    max_stages=1,
    task="classification",
    random_state=0,
)
model.fit(X, y)
predictions = model.predict(X)

To use CLARITree stages, select task="linear_regression" and supply backend options through claritree_params. CLARITree is included in the same wheel. Its direct classes are also available from tree_again.clari_tree.

TabPFN is optional:

python -m pip install 'tree-again[tabpfn]'

Experiment datasets and stored results are not part of this source release. The files in examples/ are preserved experiment scripts, not standalone demos.

Metadata

Release files for tree-again 0.1.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 tree-again 0.1.0
File Size Uploaded Provenance Actions
tree_again-0.1.0.tar.gz 99.5 kB With provenance Details for tree_again-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tree-again 0.1.0
File Interpreter ABI Platform Actions
tree_again-0.1.0-cp314-cp314-manylinux_2_39_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.39+ x86-64 Details for tree_again-0.1.0-cp314-cp314-manylinux_2_39_x86_64.whl

Total release size: 7.6 MB

Release files / tree_again-0.1.0.tar.gz

Download URL tree_again-0.1.0.tar.gz
Size 99.5 kB
Tags Source
SHA-256 checksum
How to use checksums
19013ee74ab3823772f11635685d29cf34972f83c638e41feb607fbe9373b39f
BLAKE2b-256 checksum
How to use checksums
eb197abb7d1b0603fd22661f27078d7e938e5605ed99a6e59f9851abe6a50142
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 Nov 5, 2026.

Transparency log

Release files / tree_again-0.1.0-cp314-cp314-manylinux_2_39_x86_64.whl

Download URL tree_again-0.1.0-cp314-cp314-manylinux_2_39_x86_64.whl
Size 7.5 MB
Tags CPython 3.14 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
f57093fea08007bed6edb1227b555fc0f092465a3030b68a1f625976c6125af4
BLAKE2b-256 checksum
How to use checksums
7e0ff14a3fa4d8642c057fb988ea6dde2bcc6ea81fa7ff8f3afda0c7414271d4
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 Nov 5, 2026.

Transparency log

Security for tree-again 0.1.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 tree_again-0.1.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 Nov 5, 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