in src/dag_ml_pipeline_amazon_video_reviews.py [0:0]
def is_hpo_enabled():
"""check if hyper-parameter optimization is enabled in the config
"""
hpo_enabled = False
if "job_level" in config and \
"run_hyperparameter_opt" in config["job_level"]:
run_hpo_config = config["job_level"]["run_hyperparameter_opt"]
if run_hpo_config.lower() == "yes":
hpo_enabled = True
return hpo_enabled