Skip to content

Commit 2547af1

Browse files
committed
final commit - 4real4real
1 parent 2f00252 commit 2547af1

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

demo.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
from epsilon_runner import *
22

3+
"""
4+
5+
----------------------------
6+
If you wish to 'play' with the demo/runner, please change the following values in the 'epsilon_runner.py' source file.
7+
For changes in the hyper parameters consider changing: TRAIN_COMMON_PARAMS, INFER_COMMON_PARAMS, EVAL_COMMON_PARAMS.
8+
9+
For further modifications please check "fuse-med-ml" documentation and source code at: https://github.com/BiomedSciAI/fuse-med-ml,
10+
or contact us.
11+
12+
----------------------------
13+
14+
315
416
experiment = "full" # Choose from supported experiments
517
@@ -10,10 +22,9 @@
1022
"overlap",
1123
]
1224
13-
assert experiment in supported_experiments, f"runner doesn't support experiment ({experiment})."
14-
25+
# Set you paths
1526
16-
ROOT = "./_demo"
27+
ROOT = "./_examples/epsilon"
1728
model_dir = os.path.join(ROOT, f"model_dir_{experiment}")
1829
PATHS = {
1930
"model_dir": model_dir,
@@ -24,6 +35,8 @@
2435
"data_split_filename": os.path.join(ROOT, "eps_split.pkl"),
2536
}
2637
38+
"""
39+
2740

2841
if __name__ == "__main__":
2942

epsilon_runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@
9494

9595

9696
model_dir = os.path.join(ROOT, f"model_dir_{experiment}")
97-
cache_suffix = "_MLP"
97+
9898
PATHS = {
9999
"model_dir": model_dir,
100-
"cache_dir_train": os.path.join(ROOT, f"cache_dir_train{cache_suffix}"),
101-
"cache_dir_eval": os.path.join(ROOT, f"cache_dir_eval{cache_suffix}"),
100+
"cache_dir_train": os.path.join(ROOT, f"cache_dir_train"),
101+
"cache_dir_eval": os.path.join(ROOT, f"cache_dir_eval"),
102102
"inference_dir": os.path.join(model_dir, "infer"),
103103
"eval_dir": os.path.join(model_dir, "eval"),
104104
"data_split_filename": os.path.join(ROOT, "eps_split.pkl"),

0 commit comments

Comments
 (0)