Skip to main content

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.

Metadata

Release files for collasso 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collasso 0.1.0
File Size Uploaded
collasso-0.1.0.tar.gz 49.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for collasso 0.1.0
File Interpreter ABI Platform
collasso-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 66.5 kB

Release files / collasso-0.1.0.tar.gz

Download URL collasso-0.1.0.tar.gz
Size 49.6 kB
Tags Source
SHA-256 checksum
How to use checksums
864762b8116bb6de93e65fe5c8201a1514fb96aa4f51c0e1d9a83ed6b3ce95d0
BLAKE2b-256 checksum
How to use checksums
61c9574c8782e4dd7bcb4c130c319b3918c3e8f4d663f9ae1f45e25951420355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

Release files / collasso-0.1.0-py3-none-any.whl

Download URL collasso-0.1.0-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a220a973b601863a8c2e02a980425006df86ec97dee5cea93df1bf3ce4647975
BLAKE2b-256 checksum
How to use checksums
1ad9202f1ec0a1a47e01c47c94c95201257814f1cd775e7c17a49dd34659566b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page