New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

adadmire

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adadmire

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

  • 1.0.14
  • PyPI
  • Socket score

Maintainers
2

Unit Tests Coverage Badge Download Badge

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:

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc