Applicability domains for cheminformactics.
Project description
MLChemAD
Applicability domain definitions for cheminformatics modelling.
Getting Started
Install
pip install mlchemad
Example Usage
from mlchemad import TopKatApplicabilityDomain, data
# Create the applicability domain
app_domain = TopKatApplicabilityDomain()
# Fit it to the training set
app_domain.fit(data.training)
# Determine outliers from multiple samples (rows) ...
print(app_domain.contains(data.test))
# ... or a unique sample
sample = data.test[5] # Obtain the 5th row as a pandas.Series object
print(app_domain.contains(sample))
Depending on the definition of the applicability domain, some samples of the training set might be outliers themselves.
Applicability domains
The applicability domain defined by MLChemAD as the following:
- Bounding Box
- PCA Bounding Box
- Convex Hull (does not scale well)
- TOPKAT's Optimum Prediction Space (recommended with molecular descriptors)
- Leverage
- Hotelling T²
- Distance to Centroids
- k-Nearest Neighbors (recommended with molecular fingerprints with the use of
dist='rogerstanimoto'
) - Isolation Forests
- Non-parametric Kernel Densities
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mlchemad-1.1.0.tar.gz
(13.5 kB
view details)
Built Distribution
mlchemad-1.1.0-py3-none-any.whl
(12.9 kB
view details)
File details
Details for the file mlchemad-1.1.0.tar.gz
.
File metadata
- Download URL: mlchemad-1.1.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9faa3ea693f7acd47f74dd638c9d98162ca845b4fdd2d8a5df49ace9a2155943 |
|
MD5 | 019bf9e754f6af46fcb48d889cdb89e5 |
|
BLAKE2b-256 | c3a38477df5566141823856dc637acedc792425ded9ef2e3ab1525c95d59f8eb |
File details
Details for the file mlchemad-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: mlchemad-1.1.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7f1d8f65c3414abe786e6df947b7ef4b0040a44126e7f54c7cade93736da422 |
|
MD5 | 7f236c951ed8a0c1d9e3d7eab1ec0a0b |
|
BLAKE2b-256 | 7617e815edc7dfdd66555be903f75c3fbb0389ecd237c05187f1d86f29c4d555 |