Skip to main content

ecod-rs

The ECOD outlier detector (Li et al., 2022) in Rust, with Python bindings.

Documentation and benchmark

Why

The goal is ECOD with a normal API, which PyOD doesn't have.

In PyOD, fit only stores the training data, and decision_function concatenates it with the new samples and recomputes everything. So the score of a sample depends on the rest of the batch you pass in. This was reported in #401 and #426. Yue Zhao, PyOD's maintainer and an ECOD co-author, answered that this is intended, since outlier detection is transductive. Nothing has changed since.

Here you get both: InductiveECOD scores each sample independently, ECOD behaves like PyOD.

Install

pip install ecod-rs
from ecod_rs import InductiveECOD

model = InductiveECOD(contamination=0.1).fit(X_train)
labels = model.predict(X_test)  # 1 is an outlier

Development

uv sync
uv run pytest
cargo test

Benchmark: uv run --group bench python benchmark/bench.py.

License

MIT

Metadata

Release files for ecod-rs 1.2.1

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

Source distribution (sdist)

Source distribution for ecod-rs 1.2.1
File Size Uploaded Provenance Actions
ecod_rs-1.2.1.tar.gz 84.6 kB Without provenance Details for ecod_rs-1.2.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ecod-rs 1.2.1
File Actions
ecod_rs-1.2.1-cp312-abi3-win_arm64.whl CPython 3.12 abi3 Windows ARM64 Details for ecod_rs-1.2.1-cp312-abi3-win_arm64.whl
ecod_rs-1.2.1-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for ecod_rs-1.2.1-cp312-abi3-win_amd64.whl
ecod_rs-1.2.1-cp312-abi3-musllinux_1_2_x86_64.whl CPython 3.12 abi3 Linux musl 1.2+ x86-64 Details for ecod_rs-1.2.1-cp312-abi3-musllinux_1_2_x86_64.whl
ecod_rs-1.2.1-cp312-abi3-musllinux_1_2_aarch64.whl CPython 3.12 abi3 Linux musl 1.2+ ARM64 Details for ecod_rs-1.2.1-cp312-abi3-musllinux_1_2_aarch64.whl
ecod_rs-1.2.1-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for ecod_rs-1.2.1-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
ecod_rs-1.2.1-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for ecod_rs-1.2.1-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
ecod_rs-1.2.1-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for ecod_rs-1.2.1-cp312-abi3-macosx_11_0_arm64.whl
ecod_rs-1.2.1-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for ecod_rs-1.2.1-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 6.2 MB

Release files / ecod_rs-1.2.1.tar.gz

Download URL ecod_rs-1.2.1.tar.gz
Size 84.6 kB
Tags Source
SHA-256 checksum
How to use checksums
350dde4ae939062730d98a2137b7b1d2d3d7b548e0597e29eec1c7d548b047d4
BLAKE2b-256 checksum
How to use checksums
fb4eb5daaf3ecebcd34c89dd6c83525c6c954700dc4985ee3dc9f1868dfffb3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ecod_rs-1.2.1-cp312-abi3-win_arm64.whl

Download URL ecod_rs-1.2.1-cp312-abi3-win_arm64.whl
Size 486.2 kB
Tags CPython 3.12 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
ec4d3d6048d3d09b0058f7097fb97394bd32881653492eec22095f0cb1aaf116
BLAKE2b-256 checksum
How to use checksums
1d246b8135ec2996653e0d8fb8967cbb30e29d59b17edb17d7901ca339728884
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ecod_rs-1.2.1-cp312-abi3-win_amd64.whl

Download URL ecod_rs-1.2.1-cp312-abi3-win_amd64.whl
Size 505.8 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
008cc4870e70a94e625c242d179e9ac6ca30570382089b8ffd0447571b604662
BLAKE2b-256 checksum
How to use checksums
0b822f444381b1b09f24f62a012a21ab60455149750ccdfdf70c589a9ee33a18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ecod_rs-1.2.1-cp312-abi3-musllinux_1_2_x86_64.whl

Download URL ecod_rs-1.2.1-cp312-abi3-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
f5a69bc6873fb26f3505c8bab8980ab0173488eb24b7c23c23a9589eef58833c
BLAKE2b-256 checksum
How to use checksums
1f04a938ec71fe3091f5d4b63af353f931dda0ea47a236b4250c194f2a103d86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ecod_rs-1.2.1-cp312-abi3-musllinux_1_2_aarch64.whl

Download URL ecod_rs-1.2.1-cp312-abi3-musllinux_1_2_aarch64.whl
Size 1.0 MB
Tags CPython 3.12 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
04e28064ae67564c5ae343d4c52ddb151e45aafbbb386ec0cda179156e6d206b
BLAKE2b-256 checksum
How to use checksums
974d9040712ec16e628547736b4328116dcf015faf6ebb77659a291f006de868
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ecod_rs-1.2.1-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ecod_rs-1.2.1-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 863.7 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
3f978a03342a49d286b9c91d7261c682d47a5294a1b15acaeed85354edf3f176
BLAKE2b-256 checksum
How to use checksums
5d784175964e58d9d789f09588ae56c06fcf063f23e05f1a3014c5c6c7f1db23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ecod_rs-1.2.1-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ecod_rs-1.2.1-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 801.5 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d2df5a8eaf2ad38b0bbe8bc3476378c0b4cd076d5274c4bfb355359e272c50f9
BLAKE2b-256 checksum
How to use checksums
50fd2751f926bbfef4326e243d7649dd86bf600e13a9c700c02a53314a21ef2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ecod_rs-1.2.1-cp312-abi3-macosx_11_0_arm64.whl

Download URL ecod_rs-1.2.1-cp312-abi3-macosx_11_0_arm64.whl
Size 664.9 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6767b8f7151ab358a1daafde6d5f377650d3f5c4d13a1d1484f43002e1cab421
BLAKE2b-256 checksum
How to use checksums
1c944cc0d6f7841b4fdc82d772389ceda8414f60023552af11c93f9d8727636f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ecod_rs-1.2.1-cp312-abi3-macosx_10_12_x86_64.whl

Download URL ecod_rs-1.2.1-cp312-abi3-macosx_10_12_x86_64.whl
Size 741.5 kB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
7c4063a55551f460ab9ffd9bc653f9bd826180f8dd78baa6d5c81c8d1e58c489
BLAKE2b-256 checksum
How to use checksums
b9776a5c39fb5ef6e6dbfd2779f7b52814aa91cf86cf8ccc5e01add33504640c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ecod-rs 1.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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