acoustic-carpenter-78188
10/16/2023, 8:51 AM@workflow
def some_training_job(n_training_jobs: int = 1):
training, validation, test = do_train_fech_data()
image_name = build_and_push_image()
( conditional("Single train or HPO")
.if_(n_training_jobs > 1)
.then(run_hyperparameters_optimisation_job(
single_training_job_image=image_name,
training=training,
validation=validation,
test=test,
n_training_jobs=n_training_jobs
))
.else_()
.then(run_single_trainin_job(
single_training_job_image=image_name,
training=training,
validation=validation,
test=test
))
)
I would expect the output of do_train_fech_data and build_and_push_image to be the inputs of run_hyperparameters_optimisation_job or run_single_trainin_job . However, the graph shows:
Screenshot 2023-10-13 at 15 25 39▾
run_single_trainin_job /`run_hyperparameters_optimisation_job` are the expected ones from the previous tasks.
Goal: What should the final outcome look like, ideally?
I would expect a graph similar to:
Screenshot 2023-10-13 at 15 25 51▾