Skip to main content

Tensor Separation Learning: interpretable regression via sums of rank-1 separable components.

Project description

tensorsl

Tensor Separation Learning (TSL) — a glass-box regression model. A fitted model is a sum of stages, where each stage is the ordered difference of two non-negative rank-1 products of univariate functions. This keeps the model inspectable while still capturing interactions between features.

tensorsl is the Python package: a fit/predict estimator that slots into typical ML pipelines, backed by a Rust core.

Install

pip install tensorsl

Prebuilt wheels are published for Linux, macOS, and Windows, so no toolchain is needed. To build from source instead, you need a Rust toolchain (the core is pure Rust — no system math libraries required).

Usage

import numpy as np
from tensorsl import TSLRegressor

rng = np.random.default_rng(0)
X = rng.normal(size=(500, 5))
y = X[:, 0] * X[:, 1]

model = TSLRegressor().fit(X, y)
preds = model.predict(X)

The fitted model also exposes per-feature partial dependence and feature importances for interpretation.

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tensorsl-0.3.0.tar.gz (44.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tensorsl-0.3.0-cp39-abi3-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.9+Windows x86-64

tensorsl-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

tensorsl-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

tensorsl-0.3.0-cp39-abi3-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

tensorsl-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file tensorsl-0.3.0.tar.gz.

File metadata

  • Download URL: tensorsl-0.3.0.tar.gz
  • Upload date:
  • Size: 44.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tensorsl-0.3.0.tar.gz
Algorithm Hash digest
SHA256 478379c40ba52f8c3cf69db57189b8a32257ab916218eb375930a17fd709b2c5
MD5 685e94cf8b3b5e8d3efcac0ac4dfb38e
BLAKE2b-256 fe860bf8f2cc5257352515e9a6833061e63011b219c2c15cdf8218d03ec95547

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.3.0.tar.gz:

Publisher: release.yml on jyliuu/TSL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tensorsl-0.3.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: tensorsl-0.3.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tensorsl-0.3.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 cf83096b83b97724bb45c418efad34dc6ba27603e56a3d5d2c7424e7c17d938d
MD5 da2ab3faebdb2e18e1c9048bc192e311
BLAKE2b-256 0069d7edf83d9b8ac30606c23cdc349947dd844a20d67fcb6d83662ac3cb33f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.3.0-cp39-abi3-win_amd64.whl:

Publisher: release.yml on jyliuu/TSL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tensorsl-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tensorsl-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b01c2f95ab98243ad969584a9765b18005f81327c72f188a1afb6d4912436ebd
MD5 49a7b25500400353ebc414e9a4be8d1d
BLAKE2b-256 7b1b4652b36b4c39d1925dc8b5181c307dbddafb20da7ae0bb1f7c5e7cbc0c11

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on jyliuu/TSL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tensorsl-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tensorsl-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3a7095383657a4f7fc8855c700adf460aadc9af6a0d0fcc4a99f5476e0930cad
MD5 0ceea823c56b98ae8179ea53273a1729
BLAKE2b-256 92bbc8672d6593b653d9446192b865f3d73a4b87821aa24f8f8893146735730b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on jyliuu/TSL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tensorsl-0.3.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tensorsl-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 246e15bb9af10ab24053bb87ad9ba7110215a1445fabc2a98c66cc0e87dac410
MD5 7c207d688bccfe138f7ca7ff10a9fc1c
BLAKE2b-256 376638ac6c2bb6d6703d25c5bd4f0ca8ed11a50b36a5fb8a995966140cc4d27e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.3.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on jyliuu/TSL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tensorsl-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for tensorsl-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8c02d058880b6025f1584bf951fb68a09b929dd048da39e6934c7a744a1a1d32
MD5 2d0b3536196919240ad4cab45b6406ac
BLAKE2b-256 65611c94c42a4b4efb43db0adbbf1d797fa198c62f9bba510b9472038b21ebe4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on jyliuu/TSL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page