-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
33 lines (20 loc) · 806 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from cpdbench.CPDBench import CPDBench
import cpdbench.examples.Functions as example_functions
cpdb = CPDBench()
@cpdb.dataset
def get_apple_dataset():
return example_functions.dataset_get_apple_dataset()
@cpdb.dataset
def get_bitcoin_dataset():
return example_functions.dataset_get_bitcoin_dataset()
# @cpdb.algorithm
# def execute_esst(signal):
# return example_functions.algorithm_execute_single_esst(signal)
@cpdb.algorithm
def execute_esst_test(signal):
return example_functions.algorithm_execute_single_esst(signal)
@cpdb.metric
def calc_accuracy(indexes, scores, ground_truth, *, window_size):
return example_functions.metric_accuracy_in_allowed_windows(indexes, scores, ground_truth, window_size=window_size)
if __name__ == '__main__':
cpdb.start("config.yml")