Skip to main content

Functions for detecting anomalies in tabular datasets using Mixed Graphical Models.

Project description

Unit Tests Code Coverage PyPI Version Python Versions PyPI Downloads

adadmire

Functions for detecting anomalies in molecular data sets using Mixed Graphical Models.

Installation

Enter the following commands in a shell like bash, zsh or powershell:

pip install -U adadmire

Usage

The usage example in this section requires that you first download the data files from the data folder. For a description of the contents of this folder, see section Data of the adadmire documentation site.

from adadmire import admire, penalty
import numpy as np

# Load example data
X = np.load('data/Feist_et_al/scaled_data_raw.npy') # continuous data
D = np.load('data/Feist_et_al/pheno.npy') # discrete data
levels = np.load('data/Feist_et_al/levels.npy') # levels of discrete variables

# Define lambda sequence of penalty values
lam = penalty(X, D, min= -2.25, max = -1.5, step =0.25)

# Get anomalies in continuous and discrete data
X_cor, n_cont, position_cont, D_cor, n_disc, position_disc = admire(X, D, levels, lam)
print(X_cor) # corrected X
print(n_cont) # number of continuous anomalies
print(position_cont) # position in X
print(D_cor) # corrected D
print(n_disc) # number of discrete anomalies
print(position_disc) # position in D

You can find more usage examples in the Usage section of adadmire's documentation site.

Documentation

You can find the full documentation for adadmire at spang-lab.github.io/adadmire. Amongst others, it includes chapters about:

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

adadmire-1.0.15.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

adadmire-1.0.15-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file adadmire-1.0.15.tar.gz.

File metadata

  • Download URL: adadmire-1.0.15.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for adadmire-1.0.15.tar.gz
Algorithm Hash digest
SHA256 690446573705d13c859c6635a91cd4727d939eeb155aa3a6a12f11c0f31927a7
MD5 dd36c65544d0db058cb13bcc0513d879
BLAKE2b-256 19e1a11f030f5f5bec4d41c393a47072f27a62771c62566c419de6fc34f544a0

See more details on using hashes here.

File details

Details for the file adadmire-1.0.15-py3-none-any.whl.

File metadata

  • Download URL: adadmire-1.0.15-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for adadmire-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 19db0f80c8a08e2046bb8dea5a2d4d10c62aeb2b6d1b4e9aae661b9c5e8d1616
MD5 230cb31e3b2bbf5739ab55f82a5f0cb4
BLAKE2b-256 7632a3faaf27e47bc5e25c887418b63cceba840389604d986ab68f448fea2212

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