Skip to main content

Tensor decompositions plugin for SpectroChemPy

Project description

spectrochempy-tensor

Tensor decomposition plugin for SpectroChemPy.

This official plugin provides TensorLy-backed tensor decomposition classes, starting with CP/PARAFAC decomposition exposed as scp.tensor.CP.

Installation

pip install spectrochempy-tensor

For local development from the SpectroChemPy monorepo:

pip install -e plugins/spectrochempy-tensor

Usage

import spectrochempy as scp

model = scp.tensor.CP(n_components=2)
model.fit(dataset)

The historical scp.CP alias is retained as a deprecated compatibility path.

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

spectrochempy_tensor-0.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

spectrochempy_tensor-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file spectrochempy_tensor-0.1.0.tar.gz.

File metadata

  • Download URL: spectrochempy_tensor-0.1.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spectrochempy_tensor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 66b2b51d3079791591fb295d98d65e96ad100642b2e224847801b91e52c8b0ad
MD5 f19ce71c090793db23730a5c804eb8b9
BLAKE2b-256 5e6871c451b1bf5fa22d9ca6c65851bc48ee3e914bd2bc74c96a355e5be46bb7

See more details on using hashes here.

File details

Details for the file spectrochempy_tensor-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spectrochempy_tensor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 220b2dbaca2a7321ec15730ee0dca33909f45cf147b5e4e936f3bc41d97b2ab1
MD5 be5beb53ec15e5046d4bcaa8958414df
BLAKE2b-256 2cff40152c680a1aba787953aa50f42582997af67ea530234629bf1faf4797da

See more details on using hashes here.

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