|
27 | 27 | from gplearn.genetic import SymbolicRegressor |
28 | 28 | from pyPDP.algorithms.pdp import PDP |
29 | 29 |
|
30 | | -from deepcave.config import Config |
| 30 | +from deepcave import config |
31 | 31 | from deepcave.evaluators.epm.random_forest_surrogate import RandomForestSurrogate |
32 | 32 | from deepcave.plugins.hyperparameter.pdp import PartialDependencies |
33 | 33 | from deepcave.plugins.static import StaticPlugin |
@@ -493,13 +493,13 @@ def get_output_layout(register: Callable) -> List[dcc.Graph]: |
493 | 493 | return [ |
494 | 494 | dcc.Graph( |
495 | 495 | register("symb_graph", "figure"), |
496 | | - style={"height": Config.FIGURE_HEIGHT}, |
497 | | - config={"toImageButtonOptions": {"scale": Config.FIGURE_DOWNLOAD_SCALE}}, |
| 496 | + style={"height": config.FIGURE_HEIGHT}, |
| 497 | + config={"toImageButtonOptions": {"scale": config.FIGURE_DOWNLOAD_SCALE}}, |
498 | 498 | ), |
499 | 499 | dcc.Graph( |
500 | 500 | register("pdp_graph", "figure"), |
501 | | - style={"height": Config.FIGURE_HEIGHT}, |
502 | | - config={"toImageButtonOptions": {"scale": Config.FIGURE_DOWNLOAD_SCALE}}, |
| 501 | + style={"height": config.FIGURE_HEIGHT}, |
| 502 | + config={"toImageButtonOptions": {"scale": config.FIGURE_DOWNLOAD_SCALE}}, |
503 | 503 | ), |
504 | 504 | ] |
505 | 505 |
|
@@ -600,7 +600,7 @@ def load_outputs(run, inputs, outputs) -> List[go.Figure]: # type: ignore |
600 | 600 | dict( |
601 | 601 | xaxis=dict(tickvals=x_tickvals, ticktext=x_ticktext, title=hp1_name), |
602 | 602 | yaxis=dict(tickvals=y_tickvals, ticktext=y_ticktext, title=hp2_name), |
603 | | - margin=Config.FIGURE_MARGIN, |
| 603 | + margin=config.FIGURE_MARGIN, |
604 | 604 | title=expr, |
605 | 605 | ) |
606 | 606 | ) |
|
0 commit comments