Skip to main content

Sparse Linear Multi-Task Regression

Project description

pytest codecov mypy ruff pylint docstr-coverage pydocstyle pydoclint numpydoc pip-audit pip-licenses sphinx pypi

collasso-logo

Sparse Linear Multi-Task Regression

Scope

The Python package collasso implements sparse linear multi-task regression with correlation-based information sharing (Rauschenberger, 2026). In contrast to MultiTaskLassoCV from scikit-learn, it supports target-specific feature selection, target-specific feature matrices, and privileged information.

Installation

Install the latest release from PyPI or Anaconda (not yet available):

pip install -U collasso
conda install -c conda-forge collasso

Alternatively, install the development version from GitHub or TestPyPI:

pip install -U git+https://github.com/rauschenberger/collasso.git
pip install -i https://test.pypi.org/simple/ collasso

Usage

Use the class CoopLassoCV to model a multivariate target (n × q matrix Y) based on high-dimensional features (n × p matrix or n × p × q array X), potentially indicating primary and auxiliary features (p-dimensional vector or p × q matrix Z).

from collasso import CoopLassoCV
model = CoopLassoCV()
model.fit(X_train, y_train, Z)
model.coef_ # estimated coefficients
model.predict(X_test) # out-of-sample predictions

Please find the full documentation on the website. The vignette contains examples on multi-task regression with a common feature matrix, multi-task regression with specific feature matrices, and multi-task regression with privileged information.

Reference

Armin Rauschenberger AR (2026). "Sparse linear multi-task regression with correlation-based information sharing". Manuscript in preparation.

Repository

The source code of this Python package is available on GitHub. This personal GitHub repository is mirrored at two institutional GitLab instances (see LIH and LCSB).

Disclosure

Large-language models (mainly Claude Sonnet 4.6 and Claude Opus 4.6) were used for reviewing Python code and documentation as well as for drafting or reviewing configuration files (.toml and .yaml).

Disclaimer

Copyright © 2026 Armin Rauschenberger; Luxembourg Institute of Health (LIH), Department of Medical Informatics (DMI), Bioinformatics and Artificial Intelligence (BioAI); University of Luxembourg, Luxembourg Centre for Systems Biomedicine (LCSB), Biomedical Data Science (BDS). This Python package is distributed 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

collasso-0.1.0.tar.gz (49.6 kB view details)

Uploaded Source

Built Distribution

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

collasso-0.1.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: collasso-0.1.0.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for collasso-0.1.0.tar.gz
Algorithm Hash digest
SHA256 864762b8116bb6de93e65fe5c8201a1514fb96aa4f51c0e1d9a83ed6b3ce95d0
MD5 879c9a8a4c6ec0558978fba1181e9194
BLAKE2b-256 61c9574c8782e4dd7bcb4c130c319b3918c3e8f4d663f9ae1f45e25951420355

See more details on using hashes here.

Provenance

The following attestation bundles were made for collasso-0.1.0.tar.gz:

Publisher: pypi.yaml on rauschenberger/collasso

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: collasso-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for collasso-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a220a973b601863a8c2e02a980425006df86ec97dee5cea93df1bf3ce4647975
MD5 1d147b245b056e1ce980684595044523
BLAKE2b-256 1ad9202f1ec0a1a47e01c47c94c95201257814f1cd775e7c17a49dd34659566b

See more details on using hashes here.

Provenance

The following attestation bundles were made for collasso-0.1.0-py3-none-any.whl:

Publisher: pypi.yaml on rauschenberger/collasso

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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