Skip to main content

A python package containing several robust algorithms for matrix decomposition and analysis.

Project description

decompy

decompy is a Python package containing several robust algorithms for matrix decomposition and analysis. The types of algorithms includes

  • Robust PCA or SVD based methods
  • Matrix completion methods
  • Robust matrix or tensor factorization methods.

Features

  • Data decomposition using various methods
  • Support for sparse decomposition, low-rank approximation, and more
  • User-friendly API for easy integration into your projects
  • Extensive documentation and examples

Installation

You can install decompy using pip:

pip install decompy

Usage

Here's a simple example demonstrating how to use decompy for data decomposition:

import numpy as np
import decompy

# Load your data
data = np.arange(100).reshape(20,5)

# Perform data decomposition
algo = decompy.robust_svd.DensityPowerDivergence(alpha = 0.5)
result = algo.decompose(data, method='sparse')

# Access the decomposed components
U, V = result.get_singular_vectors(type = "both")
S = result.get_singular_values()
low_rank_component = U @ S @ V.T
sparse_component = data - low_rank_component

You can find more example notebooks in examples folder. For more detailed usage instructions, please refer to the documentation.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please create an issue or submit a pull request on the GitHub repository. For contributing developers, please refer to Contributing.md file.

License

This project is licensed under the BSD 3-Clause License.

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

decompy-0.1.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

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

decompy-0.1.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: decompy-0.1.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for decompy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 761794bd5022d2dec3a2576b9a6fed66d8abff6fb089e9ea637a342e48ae6602
MD5 8c96343db40890efacdc93d731889bb7
BLAKE2b-256 c60e5126735208b704279982302eaaeba001cb466ed5ed83cea36f4d7828a594

See more details on using hashes here.

File details

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

File metadata

  • Download URL: decompy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for decompy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d820b66e4bc4315b5ff621ccc4e80798c1d1a78b549112d36b7a26ca6a4cd5b
MD5 5ed8463b1f0abfd72a7b71ed3d11c70b
BLAKE2b-256 62b725a2f31adc14f943529048c611fc762348b5ef14704bc8f19f63252f79a2

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