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.3.tar.gz (44.8 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.3-cp39-abi3-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.9+Windows x86-64

tensorsl-0.1.3-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.1.3-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.1.3-cp39-abi3-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

tensorsl-0.1.3-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.1.3.tar.gz.

File metadata

  • Download URL: tensorsl-0.1.3.tar.gz
  • Upload date:
  • Size: 44.8 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.3.tar.gz
Algorithm Hash digest
SHA256 ce9c62c79ee331373722c99081c29353f9c709569f53767978fcdfb5db814373
MD5 27bd77fee20869faa90c86a22490d325
BLAKE2b-256 db17fcdfa584b4e032b7ce44bf4526b34a74573d1be7a29a8ecc879aee0f5a30

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tensorsl-0.1.3-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.1.3-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fe3e31a508e117469aa7e42601fa8d374cd32f63bfdd08764225ab8b55b9f70c
MD5 253f29a6f90f33e9ebc495212614ff03
BLAKE2b-256 82681ac04b7959e969f3ee560c76fd680d209e9e515c7d74e6544c529f9743c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tensorsl-0.1.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 59415ef0ca06af3c8d71355d7aa8c2b2f61a18b4fa06c0fae1c60cd7b0150a3a
MD5 22739b26d8abea769791712609a628af
BLAKE2b-256 58ccea4dbc203e561d10ed30a5c0599e0549386d606169c59eb37fdcfed827fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tensorsl-0.1.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b2efb11df8536b2bc64c95f5378ba59c78cbba5622106223232a8222f2b8b508
MD5 cb5bd199af1aae7ac13451b8f579fd01
BLAKE2b-256 5b4fea4986ecd80a7b6d671eb3acae8f2eecacd24ff9a5e65b0bb20849432bda

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tensorsl-0.1.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ff7db6bf5480a47e5e81cd16313625b87d51532613319222d65ce58ade3c360
MD5 cbe82d981868f356547785aabadec1e6
BLAKE2b-256 ad2f77f1936f14db55c70a6d5fde43884fb0215351d2433f555b84e40874fb0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tensorsl-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 09b0c94ed7a44b932f8a888711aec96f8f2a4af821e3e7e9001dcf30a19e4e06
MD5 e832ef2af99a391e0f1bca86e30ec3f6
BLAKE2b-256 b39c6e963886d04b0f9ac97b1680c6d57ef1fc09ff84a7f61298bceb89592938

See more details on using hashes here.

Provenance

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