Skip to main content

Reliability Component Analysis

Project description

Reliability Component Analysis

tests

Implementation of Reliability Component Analysis (RCA) from the paper

https://www.biorxiv.org/content/10.64898/2026.01.25.701594v1

scikit_rca is a scikit-learn compatible extension. The implementation is based on the scikit-learn-contrib template.

Installation

The package is available on PyPI and can be installed with:

pip install scikit-rca

Usage

Example usage is demonstrated in examples/run_rca.py. To use this example, clone the git repo and start by running

python examples/run_rca.py --help

The run_rca.py script expects to finds the data stored in the directory indicated by the --data-dir flag in the form of two files: features.npy and labels.npy, which are expected to be numpy arrays of shape [num_samples, d] and [num_samples, 2]. The labels array should be structured so that the first dimension indexes samples by group, and the second dimension provides an index of each sample within each group. An example invocation of the script is as follows:

python examples/run_rca.py \
    --data-dir /path/to/my/data \
    --lr 0.005 \
    --epochs 200 \
    --dim 5 \
    --penalty-scale 0.1 \
    --batch-size 4000 \
    --weight-decay 0.001 \
    --out-dir /path/to/store/model

Authors

Anastasia Borovykh, Max Weissenbacher, Stephanie Noble, Maxwell Shinn.

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

scikit_rca-0.1.1.tar.gz (95.2 kB view details)

Uploaded Source

Built Distribution

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

scikit_rca-0.1.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file scikit_rca-0.1.1.tar.gz.

File metadata

  • Download URL: scikit_rca-0.1.1.tar.gz
  • Upload date:
  • Size: 95.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for scikit_rca-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f84a80f034ceef2126e045816aeac325c75b53c5130e70be2bb6385904e2e915
MD5 36f6da881f8db1cc82c2da41a21dc463
BLAKE2b-256 e00af408822a1ec82ce39ffcbcba5ca916fdcb48ae5135860eebfdbf6333b007

See more details on using hashes here.

File details

Details for the file scikit_rca-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scikit_rca-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for scikit_rca-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e735bf247c8e62bfb22b813ca070a27f47f0e3138fc87a6a885dc8be103a6ed
MD5 d2a2b187a83044c6e603a99bfff529ef
BLAKE2b-256 c1a1b732eaea18c60f14c9b70fec8352b41dd1e967317f8db63f65c75ac0a9b5

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