Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Laplace corrected modified naïve bayes model

Project description

# ModifiedNB Model

Scikit-learn based implementation of the popular cheminformatics Laplace corrected Naïve Bayes algorithm as described in:

Prediction of Biological Targets for Compounds Using Multiple-Category Bayesian Models Trained on Chemogenomics Databases
Nidhi,†, Meir Glick,‡, John W. Davies,‡ and, and Jeremy L. Jenkins*,‡
Journal of Chemical Information and Modeling 2006 46 (3), 1124-1133
DOI: 10.1021/ci060003g

## Installation

pip install ModifiedNB

## Usage

Works exactly like any other scikit-learn model.

```python
import numpy as np
X = np.random.randint(5, size=(6, 100))
y = np.array([1, 2, 3, 4, 5, 6])

from ModifiedNB import ModifiedNB
clf = ModifiedNB()
clf.fit(X, y)
print(clf.predict(X[2:3]))
```


Project details


Release history Release notifications

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ModifiedNB, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size ModifiedNB-0.2-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ModifiedNB-0.2.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page