Sort all imports

This commit is contained in:
coolneng 2020-12-09 14:35:37 +01:00
parent ef043650b5
commit 280c96f7c9
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 11 additions and 10 deletions

View File

@ -8,5 +8,6 @@ mkShell {
python38Packages.pandas python38Packages.pandas
python38Packages.scikitlearn python38Packages.scikitlearn
python38Packages.seaborn python38Packages.seaborn
python38Packages.isort
]; ];
} }

View File

@ -1,6 +1,6 @@
from pandas import read_csv from pandas import read_csv
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import KFold from sklearn.model_selection import KFold
from sklearn.preprocessing import LabelEncoder
def replace_values(df): def replace_values(df):

View File

@ -1,16 +1,16 @@
from numpy import mean, arange from sys import argv
from matplotlib.pyplot import *
from numpy import arange, mean
from pandas import DataFrame, cut
from seaborn import countplot, heatmap, set_style, set_theme
from sklearn.metrics import confusion_matrix, roc_auc_score, roc_curve from sklearn.metrics import confusion_matrix, roc_auc_score, roc_curve
from sklearn.naive_bayes import GaussianNB from sklearn.naive_bayes import GaussianNB
from sklearn.neural_network import MLPClassifier
from sklearn.neighbors import KNeighborsClassifier from sklearn.neighbors import KNeighborsClassifier
from sklearn.neural_network import MLPClassifier
from sklearn.preprocessing import scale from sklearn.preprocessing import scale
from sklearn.svm import LinearSVC from sklearn.svm import LinearSVC
from sklearn.tree import DecisionTreeClassifier from sklearn.tree import DecisionTreeClassifier
from seaborn import set_theme, set_style, heatmap, countplot
from matplotlib.pyplot import *
from pandas import DataFrame, cut
from sys import argv
from preprocessing import parse_data, split_k_sets from preprocessing import parse_data, split_k_sets
@ -110,8 +110,8 @@ def plot_attributes_correlation(data, target):
def plot_all_figures(results, data, target): def plot_all_figures(results, data, target):
set_theme() set_theme()
# plot_roc_auc_curve(results=results) plot_roc_auc_curve(results=results)
# plot_confusion_matrix(results=results) plot_confusion_matrix(results=results)
plot_attributes_correlation(data=data, target=target) plot_attributes_correlation(data=data, target=target)