Skip to main content

Reliability Component Analysis

Project description

Reliability Component Analysis

tests

Implementation of Reliability Component Analysis (RCA) from the paper

(citation pending).

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.0.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.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scikit_rca-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 834c163b5f7116cf6204c4cee14fa006ade88ec5ec2a5ebcd613ff771e2b6711
MD5 db15f6f8dba1c1effa887d42bdf16365
BLAKE2b-256 5eda80cfc72bfcbfc8227e78a40bc41ccfbfa14257ad2c8a60a55187c1863e37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scikit_rca-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d09deaadba1cd725ddba268bfdd364373d6ae7b0fba30d17415f29ee59a5aff
MD5 a88541fee68a2d2b3c26adb0a28268f0
BLAKE2b-256 6a66cf41e4f51fa4378908d5660edf21583892e8aaf74b93a4cf61d430f5e21b

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