Commit fbba87c1 authored by Antonin Dvorak's avatar Antonin Dvorak
Browse files

call modify_db without specifying args, just passing them

parent 18d93070
......@@ -388,7 +388,7 @@ class BaseOutlierAnalyser(ABC):
query = '''INSERT OR IGNORE INTO scores
VALUES (?, ?, ?, ?, ?, ?)''',
upperbound = 10,
args = row)
row)
conn_score.close()
......
......@@ -250,7 +250,7 @@ def save_scores_local_sqlite(analyser,
query = '''INSERT OR IGNORE INTO scores
VALUES (?, ?, ?, ?, ?, ?)''',
upperbound = 10,
args = row)
row)
conn_score.close()
......@@ -663,7 +663,7 @@ def analysis(module_name, class_name, alias_name, hyperparameters,
query = '''INSERT INTO time
VALUES (?, ?, ?, ?, datetime('now', 'localtime'))''',
upperbound = 10,
args = [data_dict_train["date_start"],
[data_dict_train["date_start"],
data_dict_train["date_end_excluded"],
algo_name,
training_time])
......
......@@ -392,7 +392,7 @@ def score_benchmark(folder_scores, hostgroup,
query = '''INSERT OR IGNORE INTO auc
VALUES (?, ?, ?, ?, ?, ?)''',
upperbound = 10,
args = (hostgroup, algo_name, family, roc_auc, int(w), end_week))
(hostgroup, algo_name, family, roc_auc, int(w), end_week))
conn_score.close()
# # CUMULATIVE QUANTITIES
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment