-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (48 loc) · 1.8 KB
/
Copy pathMakefile
File metadata and controls
66 lines (48 loc) · 1.8 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
UV ?= uv
PYTHON ?= $(UV) run python
-include .env
# Marker generated by the datasets target after a successful download.
DATASET_STAMP := $(DATASET_ROOT)/.downloaded
RHYTHM_EVENT_SEQUENCES_CONFIG ?= sddb
.PHONY: setup sync hooks datasets format lint optuna_dashboard tasks \
visualize visualize-datasets cudb-anomaly-scores study \
rhythm-event-sequences rhythm-event-sequences-visualize rhythm-event-sequences-score
setup: sync hooks datasets
sync:
$(UV) sync
hooks:
git config core.hooksPath ./.git-hooks
datasets: $(DATASET_STAMP)
$(DATASET_STAMP): dataset.sh .env
bash dataset.sh
touch "$@"
format:
$(UV) run ruff format .
lint: format
$(UV) run ruff check --fix .
optuna_dashboard:
@storage_url="$$( $(PYTHON) -c 'from peincfedmdrs.utils.optuna import build_storage_name; print(build_storage_name())')"; \
$(UV) run optuna-dashboard "$$storage_url" --host 0.0.0.0
tasks:
@printf '%s\n' \
'visualize' \
'visualize-datasets' \
'cudb-anomaly-scores' \
'study' \
'rhythm-event-sequences' \
'rhythm-event-sequences-visualize' \
'rhythm-event-sequences-score'
visualize:
$(PYTHON) -m ecg_visualization.tasks.visualize
visualize-datasets:
$(PYTHON) -m ecg_visualization.tasks.visualize_datasets $(if $(dataset_ids),dataset_ids=$(dataset_ids),)
cudb-anomaly-scores:
$(PYTHON) -m ecg_visualization.tasks.cudb_anomaly_scores
study:
$(PYTHON) -m ecg_visualization.tasks.study
rhythm-event-sequences:
$(PYTHON) -m ecg_visualization.tasks.rhythm_event_sequences config_name=$(RHYTHM_EVENT_SEQUENCES_CONFIG)
rhythm-event-sequences-visualize:
$(PYTHON) -m ecg_visualization.tasks.rhythm_event_sequences.visualize config_name=$(RHYTHM_EVENT_SEQUENCES_CONFIG)
rhythm-event-sequences-score:
$(PYTHON) -m ecg_visualization.tasks.rhythm_event_sequences.score config_name=$(RHYTHM_EVENT_SEQUENCES_CONFIG)