Skip to main content

An Python wrapper for Matlab-based bigraphical methods.

Project description

BiGLasso-Methods

This package Python provides wrappers for TeraLasso and DNNLasso. As they were originally written in Matlab, you will need Matlab on your machine to run them. It also wraps GmGM and Scikit-Learn's graphical_lasso function, to provide a consistent API for them.

These are included as "git submodules", i.e. we are just wrapping whatever happens to be in their repository.

EiGLasso is not included as it requires compilation of C++ code, which is more complicated to wrap in a PIP-installable module. However it is not too hard to do it manually, and it is a good algorithm; if you wish to use it, check out their github.

This project has a copyleft license, as DNNLasso has a copyleft license. Thus, if you wish to use this as part of a larger project, be aware that you will likely need a copyleft license for such a work (this is not legal advice, read the license to understand what you are entitled to do with this software).

Installation

pip install biglasso-methods

Installation Troubleshooting

If you do not have the latest Matlab version, the install may fail, with an error like:

RuntimeError: MATLAB R2024a installation not found. Install to default location, or add <matlabroot>/bin/maca64 to DYLD_LIBRARY_PATH, where <matlabroot> is the root of a MATLAB R2024a installation.

You can either solve this by installing the newest Matlab version, or finding out which version you have and looking through PyPI to find which matlabengine version corresponds to your Matlab version. For example, I had MATLAB R2023b, which works with matlabengine 9.15, so I ran:

pip install matlabengine==9.15.2
pip install biglasso-methods

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

biglasso_methods-1.0.1.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

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

biglasso_methods-1.0.1-py3-none-any.whl (6.1 MB view details)

Uploaded Python 3

File details

Details for the file biglasso_methods-1.0.1.tar.gz.

File metadata

  • Download URL: biglasso_methods-1.0.1.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.19

File hashes

Hashes for biglasso_methods-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f9bcc326f0cdf4bfebd242b46b513f02620098664b485fd2ca717fda376c7888
MD5 617026ee92b7dcb4358d352665d6fa9c
BLAKE2b-256 e8317f7ca7e45d4c3c1ffbe44dc5e686b1016feaddb7b69bc09e7e5adaf92c82

See more details on using hashes here.

File details

Details for the file biglasso_methods-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for biglasso_methods-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f97056fe486f45227f7d3b700e5d528288f287653e32d1b174d7164c10605ee6
MD5 da98ba4cc2e5fda2bad682a555b5d466
BLAKE2b-256 92c94f3337e814f040cf77574c5d68716d1c138ce47c3833a9cbeb9acda0f734

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