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.2.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.2-py3-none-any.whl (6.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biglasso_methods-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ab5aab4572ce9ca82cdd63923d526d63899558b54e5c6fdf7ec44bd63b38d38a
MD5 deeea226c7d10478dd92041a9883f6dd
BLAKE2b-256 bb958baedd6563c7726c550322ec18aab073dfd9a9bde674e7795a9b891aa43d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for biglasso_methods-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68fca582c51b0d17977da0cb47d314754bce31c8271a150130be15d114e3221b
MD5 789a3475cd7478ce85b44b08bfbaa893
BLAKE2b-256 4fc3f9d4b0967133f2e37a76966a47d837046ef3f5dc54e3552a760b13fcc579

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