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.1.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.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spectrochempy_tensor-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 82e5865dda057afb153e8ddf7483349d9605cdc571d8dd55db684fdcb4c41e63
MD5 0d575dabcc6790f0f3b3322623c57db7
BLAKE2b-256 25e6b26368df1d58c402a48c2b41842a16bc8b1240171820bef6f267163188cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spectrochempy_tensor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8400b04659fba736e0515c7a3392595408323da65e0d22513ddb08b04300c5b4
MD5 1fccbdb6f10d990ed6a0fbb3763fdcf4
BLAKE2b-256 7fdda4f443804b56ad08e1ab74d56f2ea0789ff8dbf52e2e33432861b240ac1e

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