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 (imported as tsl_py): 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 tsl_py 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.1.1.tar.gz (46.2 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.1.1-cp39-abi3-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

tensorsl-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

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

tensorsl-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

tensorsl-0.1.1-cp39-abi3-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

tensorsl-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for tensorsl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1d6ec641517d1fd10850288e31e16da3492e091286f43e006172a82bda8c63c4
MD5 122045a0d653aa277f9a84f6c296eb82
BLAKE2b-256 f7abc4df382299ee16a222c7274459d4a5db30131c865cde6d7797f7461b0a36

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.1.1.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.1.1-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: tensorsl-0.1.1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.1.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 13adc49a3857d3a7770eba397826756d6924563419264a96e499922a6bb147bb
MD5 3ec484407c2917a1240f5512634987b2
BLAKE2b-256 f8ae2b48e884c00aa16854c5d22499e4560b3aa8cb438232373a7100e7e69bf4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.1.1-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.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tensorsl-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2cc7b9774e6bbdd66bc53fc6a2f54ede234a87e6b2d7f69f803e3fc994b51293
MD5 cfe8b25b8b6f99a27e18821afb45d235
BLAKE2b-256 9c32645bcc69ca630385a9abbab4d9c1a6746d50797aa2752b5dca0cb9ae0290

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.1.1-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.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tensorsl-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 78f028d81de3c83cef16ec5b7e4ab46f89001d3f9a9a9b0ed02f7bd752dc567e
MD5 e56b0ae1438865ed9d7481e872e3a40a
BLAKE2b-256 26b63d606c24e30ed500f7ea2330025a595f93cacadaaf1feda9019aa52387fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.1.1-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.1.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tensorsl-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1efa8c249a14a3cd5d2d698c68b31f9e7076a7f6db0c2cf627a821d7ead590a
MD5 a57195883f4d3d02a501983a115fa6e7
BLAKE2b-256 21e1cf9ffc56caca008ed051b2aaf18bf928414aa89f151ab858999ecacb9880

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.1.1-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.1.1-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for tensorsl-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6e542560038502836fe2fd88011019724f4dd51cda60707081faca982f655349
MD5 3ae8ac783bfb4c5d11e32646c9e54439
BLAKE2b-256 b83cfc7061a7cfdfa9645de254d61af8fa0ea58edf2249e8c1a0fc09873e907d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensorsl-0.1.1-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