Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cloud-infrastructure
data-analytics
Commits
fbba87c1
Commit
fbba87c1
authored
May 02, 2021
by
Antonin Dvorak
Browse files
call modify_db without specifying args, just passing them
parent
18d93070
Changes
3
Hide whitespace changes
Inline
Side-by-side
adcern/analyser.py
View file @
fbba87c1
...
@@ -388,7 +388,7 @@ class BaseOutlierAnalyser(ABC):
...
@@ -388,7 +388,7 @@ class BaseOutlierAnalyser(ABC):
query
=
'''INSERT OR IGNORE INTO scores
query
=
'''INSERT OR IGNORE INTO scores
VALUES (?, ?, ?, ?, ?, ?)'''
,
VALUES (?, ?, ?, ?, ?, ?)'''
,
upperbound
=
10
,
upperbound
=
10
,
args
=
row
)
row
)
conn_score
.
close
()
conn_score
.
close
()
...
...
adcern/cmd/data_mining.py
View file @
fbba87c1
...
@@ -250,7 +250,7 @@ def save_scores_local_sqlite(analyser,
...
@@ -250,7 +250,7 @@ def save_scores_local_sqlite(analyser,
query
=
'''INSERT OR IGNORE INTO scores
query
=
'''INSERT OR IGNORE INTO scores
VALUES (?, ?, ?, ?, ?, ?)'''
,
VALUES (?, ?, ?, ?, ?, ?)'''
,
upperbound
=
10
,
upperbound
=
10
,
args
=
row
)
row
)
conn_score
.
close
()
conn_score
.
close
()
...
@@ -663,7 +663,7 @@ def analysis(module_name, class_name, alias_name, hyperparameters,
...
@@ -663,7 +663,7 @@ def analysis(module_name, class_name, alias_name, hyperparameters,
query
=
'''INSERT INTO time
query
=
'''INSERT INTO time
VALUES (?, ?, ?, ?, datetime('now', 'localtime'))'''
,
VALUES (?, ?, ?, ?, datetime('now', 'localtime'))'''
,
upperbound
=
10
,
upperbound
=
10
,
args
=
[
data_dict_train
[
"date_start"
],
[
data_dict_train
[
"date_start"
],
data_dict_train
[
"date_end_excluded"
],
data_dict_train
[
"date_end_excluded"
],
algo_name
,
algo_name
,
training_time
])
training_time
])
...
...
adcern/cmd/elaborate_scores.py
View file @
fbba87c1
...
@@ -392,7 +392,7 @@ def score_benchmark(folder_scores, hostgroup,
...
@@ -392,7 +392,7 @@ def score_benchmark(folder_scores, hostgroup,
query
=
'''INSERT OR IGNORE INTO auc
query
=
'''INSERT OR IGNORE INTO auc
VALUES (?, ?, ?, ?, ?, ?)'''
,
VALUES (?, ?, ?, ?, ?, ?)'''
,
upperbound
=
10
,
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
()
conn_score
.
close
()
# # CUMULATIVE QUANTITIES
# # CUMULATIVE QUANTITIES
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment