ecod-rs
The ECOD outlier detector (Li et al., 2022) in Rust, with Python bindings.
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.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ecod_rs-1.3.0.tar.gz | 85.3 kB | Without provenance | Details for ecod_rs-1.3.0.tar.gz |
Built distributions (wheels)
Total release size: 6.3 MB
Release files / ecod_rs-1.3.0.tar.gz
| Download URL | ecod_rs-1.3.0.tar.gz |
|---|---|
| Size | 85.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4199cd6b90d6e726619b472e5dcba694cf9a2761920c2580c7cd173462c86a11
|
|
BLAKE2b-256 checksum How to use checksums |
086a81c4d7f9dadca09b858c9a8caf33b9ab562c1dd5761f14e2717b2f23ccb8
|
| 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.3.0-cp312-abi3-win_arm64.whl
| Download URL | ecod_rs-1.3.0-cp312-abi3-win_arm64.whl |
|---|---|
| Size | 493.7 kB |
| Tags | CPython 3.12 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
e6eea800c058807460616907af368a1daa3ebef2bdb6189663e24ec70c18d260
|
|
BLAKE2b-256 checksum How to use checksums |
fcaf149e429aa46fa27b23d66bd50a49f1a588b76805a7f9cc5b33f1e6831300
|
| 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.3.0-cp312-abi3-win_amd64.whl
| Download URL | ecod_rs-1.3.0-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 519.2 kB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
46290204b5f9d27fea458fa7d02d0229a7410c4ff521e7b284f5ec6da60196a6
|
|
BLAKE2b-256 checksum How to use checksums |
b2e84955f6aa8a0c95ded95398b12bff8499001c5cc727f80469c96ef9ba4271
|
| 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.3.0-cp312-abi3-musllinux_1_2_x86_64.whl
| Download URL | ecod_rs-1.3.0-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 |
d31000be23245c6a5a1d3fc85556218286de2ef2ded8362aa1a5e9cca3cda2bb
|
|
BLAKE2b-256 checksum How to use checksums |
e0e7cbba3863529d3ea44aa450a74c186159b152b4e671a6719a03874bd73b57
|
| 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.3.0-cp312-abi3-musllinux_1_2_aarch64.whl
| Download URL | ecod_rs-1.3.0-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 |
266de4e0b7c1d1a4672445d6955f0aa3ec78da70819f72b3f36f1b7e72c94fcc
|
|
BLAKE2b-256 checksum How to use checksums |
b31ac3625bc056a3f7254739b8cdfc8ebde3f39e4e2a7806cdec355a98beafee
|
| 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.3.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ecod_rs-1.3.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 879.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
150f231badec70294a2661da29ac169660912091b8dbd2ec07e0360c4c9c5285
|
|
BLAKE2b-256 checksum How to use checksums |
c1f52b3e36ea3212b82abdfe94adb269dffd4c62a1e49434cd86f01bd3d19bc8
|
| 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.3.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | ecod_rs-1.3.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 811.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
ea75266505b701ee406bb4f48baa4f7cfd4d9f8b436232bd62655f6814097e17
|
|
BLAKE2b-256 checksum How to use checksums |
3b4d968a71f114d7d4277b0563f2471bd9d8de04d4caf8c829ccfde3760b4fcb
|
| 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.3.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | ecod_rs-1.3.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 678.7 kB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ceade4397e280e042cd31ed065f20ea03cea8c0ed1161e381c55a94b13e11c6f
|
|
BLAKE2b-256 checksum How to use checksums |
8741c9d43204e427d4b280e71f7cd2e9081659bfca52cf17d7386d9ac29e1980
|
| 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.3.0-cp312-abi3-macosx_10_12_x86_64.whl
| Download URL | ecod_rs-1.3.0-cp312-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 752.6 kB |
| Tags | CPython 3.12 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
33e8a52b7b0578d01de1d1e7cd0fe2df3f241f00667c11ac22fd87fe6bbd2e48
|
|
BLAKE2b-256 checksum How to use checksums |
b083d0f7e97156af4df99f26ede8b7a8da04eb59c14c3b13c95b61a67a72d590
|
| 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.3.0
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.