comparison ml_visualization_ex.py @ 9:e3b420d0b71a draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
author bgruening
date Tue, 13 Apr 2021 22:42:14 +0000
parents 449a757be9c9
children 9b6faa256f15
comparison
equal deleted inserted replaced
8:449a757be9c9 9:e3b420d0b71a
1 import argparse 1 import argparse
2 import json 2 import json
3 import os
4 import warnings
5
3 import matplotlib 6 import matplotlib
4 import matplotlib.pyplot as plt 7 import matplotlib.pyplot as plt
5 import numpy as np 8 import numpy as np
6 import os
7 import pandas as pd 9 import pandas as pd
8 import plotly 10 import plotly
9 import plotly.graph_objs as go 11 import plotly.graph_objs as go
10 import warnings 12 from galaxy_ml.utils import load_model, read_columns, SafeEval
11
12 from keras.models import model_from_json 13 from keras.models import model_from_json
13 from keras.utils import plot_model 14 from keras.utils import plot_model
14 from sklearn.feature_selection.base import SelectorMixin 15 from sklearn.feature_selection.base import SelectorMixin
15 from sklearn.metrics import precision_recall_curve, average_precision_score 16 from sklearn.metrics import auc, average_precision_score, confusion_matrix, precision_recall_curve, roc_curve
16 from sklearn.metrics import roc_curve, auc, confusion_matrix
17 from sklearn.pipeline import Pipeline 17 from sklearn.pipeline import Pipeline
18 from galaxy_ml.utils import load_model, read_columns, SafeEval
19 18
20 19
21 safe_eval = SafeEval() 20 safe_eval = SafeEval()
22 21
23 # plotly default colors 22 # plotly default colors