Skip to content

Commit d0cd2bb

Browse files
author
Richard Michael
committed
exclude model dir from merging.
1 parent 6a7600c commit d0cd2bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

experiments/util/merge_experiments.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
Merges by meta.yaml accounts for input results directories.
44
"""
55
import os
6-
from pathlib import Path
76
import shutil
7+
from pathlib import Path
8+
89
import yaml
910

1011

@@ -13,7 +14,7 @@ def align_meta_files(mlflow_results_dir: str):
1314
raise ValueError(f"Specified directory: {mlflow_results_dir} does not exist!")
1415
for exp_dir in os.listdir(mlflow_results_dir):
1516
change_cnt = 0.
16-
if exp_dir.startswith("."):
17+
if exp_dir.startswith(".") or "models" in exp_dir:
1718
continue
1819
# parse experiment meta file
1920
exp_meta_file = mlflow_results_dir + os.sep + exp_dir + os.sep + "meta.yaml"

0 commit comments

Comments
 (0)