|
a |
|
b/setup.py |
|
|
1 |
#!/usr/bin/env python |
|
|
2 |
# -*- encoding: utf-8 -*- |
|
|
3 |
|
|
|
4 |
import sys |
|
|
5 |
import os |
|
|
6 |
|
|
|
7 |
try: |
|
|
8 |
sys.path.index(os.getcwd()) # os.getcwd() for this directory |
|
|
9 |
except ValueError: |
|
|
10 |
sys.path.append(os.getcwd()) |
|
|
11 |
|
|
|
12 |
import pandas as pd |
|
|
13 |
from pandas.plotting import scatter_matrix |
|
|
14 |
import matplotlib.pyplot as plt |
|
|
15 |
import seaborn as sns |
|
|
16 |
import numpy as np |
|
|
17 |
from utils import analysis_utils |
|
|
18 |
|
|
|
19 |
from sklearn.model_selection import ( |
|
|
20 |
train_test_split, |
|
|
21 |
cross_val_score, |
|
|
22 |
cross_val_predict, |
|
|
23 |
GridSearchCV |
|
|
24 |
) |
|
|
25 |
from sklearn.metrics import ( |
|
|
26 |
accuracy_score, |
|
|
27 |
roc_curve, |
|
|
28 |
roc_auc_score, |
|
|
29 |
confusion_matrix, |
|
|
30 |
precision_score, |
|
|
31 |
recall_score, |
|
|
32 |
precision_recall_curve, |
|
|
33 |
f1_score, |
|
|
34 |
) |
|
|
35 |
from sklearn.neural_network import MLPClassifier |