Mercurial > repos > goeckslab > ludwig_experiment
comparison ludwig_hyperopt.py @ 5:78b1e3921576 draft default tip
planemo upload for repository https://github.com/goeckslab/Galaxy-Ludwig.git commit 4dc221b2fa9717552787f0985ad3fc3df4460158
author | goeckslab |
---|---|
date | Sat, 21 Jun 2025 15:05:21 +0000 |
parents | 78e6686a218e |
children |
comparison
equal
deleted
inserted
replaced
4:5a39f429fad1 | 5:78b1e3921576 |
---|---|
6 from ludwig.globals import ( | 6 from ludwig.globals import ( |
7 HYPEROPT_STATISTICS_FILE_NAME, | 7 HYPEROPT_STATISTICS_FILE_NAME, |
8 ) | 8 ) |
9 from ludwig.hyperopt_cli import cli | 9 from ludwig.hyperopt_cli import cli |
10 from ludwig.visualize import get_visualizations_registry | 10 from ludwig.visualize import get_visualizations_registry |
11 | |
12 from model_unpickler import SafeUnpickler | 11 from model_unpickler import SafeUnpickler |
13 | |
14 from utils import ( | 12 from utils import ( |
15 encode_image_to_base64, | 13 encode_image_to_base64, |
16 get_html_closing, | 14 get_html_closing, |
17 get_html_template | 15 get_html_template |
18 ) | 16 ) |
82 | 80 |
83 # visualization | 81 # visualization |
84 output_directory = None | 82 output_directory = None |
85 for ix, arg in enumerate(sys.argv): | 83 for ix, arg in enumerate(sys.argv): |
86 if arg == "--output_directory": | 84 if arg == "--output_directory": |
87 output_directory = sys.argv[ix+1] | 85 output_directory = sys.argv[ix + 1] |
88 break | 86 break |
89 | 87 |
90 hyperopt_stats_path = os.path.join( | 88 hyperopt_stats_path = os.path.join( |
91 output_directory, | 89 output_directory, |
92 "hyperopt", HYPEROPT_STATISTICS_FILE_NAME | 90 "hyperopt", HYPEROPT_STATISTICS_FILE_NAME |