Skip to main content

An implementation of linear LVMs with a spectral regulariser.

Project description

Spectrally regularised LVMs

GitHub license GitHub last commit PyPI PyPI - Wheel Read the Docs GitHub issues

Current version: 0.1.1

Spectrally-regularised-LVMs is a Python-based package which facilitates the estimation of the linear latent variable model (LVM) parameters with a unique spectral regularisation term in single channel time-series applications.

Purpose

LVMs are a statistical methodology which tries to capture the underlying structure in some observed data. This package caters to single channel time-series applications and provides a methodology to estimate the LVM parameters. The model parameters are encouraged to be diverse via a spectral regularisation term which penalises source duplication of the spectral information captured by the latent sources.

The purpose of this package is to provide a complete methodology that caters to a variety of LVM objective functions.

Documentation

Please visit the docs for all supporting documentation for this package.

Installation

The package is designed to be used through the Python API, and can be installed using pip:

$ pip install spectrally-regularised-LVMs

Requirements

This package used Python ≥ 3.10 or later to run. For other python dependencies, please check the pyproject.toml file included in this repository. The dependencies of this package are as follows:

Package Version
Python ≥ 3.10
Numpy ≥ 1.23.1
Matplotlib ≥ 3.5.2
SciPy ≥ 1.8.1
scikit-learn ≥ 1.1.2
tqdm ≥ 4.64.1
SymPy ≥ 1.1.1

API usage

Please visit the docs for all supporting API documentation for this package.

Contributing

This package uses Poetry for dependency management and Python packaging and git for version control. To get started, first install git and Poetry and then clone this repository via

$ git clone git@github.com:RyanBalshaw/spectrally-regularised-LVMs.git
$ cd spectrally-regularised-LVMs

Then, install the necessary dependencies in a local environment via

$ poetry install --with dev,docs
$ poetry shell

This will install all necessary package dependencies and activate the virtual environment. You can then set up the pre-commit hooks via

$ pre-commit install
pre-commit installed at .git/hooks/pre-commit

License

This project is licensed under MIT License - see the LICENSE file for details.

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

spectrally_regularised_lvms-0.1.2.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

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

spectrally_regularised_lvms-0.1.2-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file spectrally_regularised_lvms-0.1.2.tar.gz.

File metadata

  • Download URL: spectrally_regularised_lvms-0.1.2.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.0 Windows/10

File hashes

Hashes for spectrally_regularised_lvms-0.1.2.tar.gz
Algorithm Hash digest
SHA256 613095e0ef5ba27d5731668d2923cd2867e88b9896f2fc56c8b497fb3dd7b2c5
MD5 0b9ec5eb08dd16d4247a9d57fb85b932
BLAKE2b-256 4e0110959599b42161e2294f7081f37d144df38ed939c2e6b816dd5b7fbdc4c4

See more details on using hashes here.

File details

Details for the file spectrally_regularised_lvms-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for spectrally_regularised_lvms-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 59ee368ade789f82052fedde0c9eccea0f564625609661837c12d15929345c88
MD5 2a46a40434cf0f1512c276cd98185d25
BLAKE2b-256 fb5f914e307b214c380fe8356723107b7f8ec87173a5040bef8dcf59e9c29bdf

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