INGOT-DR (INterpretable GrOup Testing for Drug Resistance)
Project description
INGOT-DR
INGOT-DR ( INterpretable GrOup Testing for Drug Resistance) is an interpretable rule-based predictive model base on Group Testing and Boolean Compressed Sesing.
Install
INGOT-DR can be installed from PyPI
pip install ingotdr
Train and evaluate an INGOT-DR classifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import balanced_accuracy_score
import pandas as pd
import ingot
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=33, test_size=0.2, stratify=y)
clf = ingot.INGOTClassifier()
clf.fit(X_train,y_train)
y_pred = clf.predict(X_test)
print("Balanced accuracy: {}".format(balanced_accuracy_score(y_test, y_pred)))
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
ingotdr-0.0.2.tar.gz
(5.7 kB
view hashes)