|
67 | 67 | experiment_name = config["experiment_name"] |
68 | 68 | aml_cluster_name = config["aml_cluster_name"] |
69 | 69 | aml_pipeline_name = "training-pipeline" |
| 70 | +#model_name = config["model_name"] |
| 71 | +model_name = PipelineParameter(name="model_name", default_value="sklearn_regression_model.pkl") |
70 | 72 |
|
71 | 73 | source_directory = "code" |
72 | 74 |
|
|
76 | 78 | cd = CondaDependencies("aml_config/conda_dependencies.yml") |
77 | 79 |
|
78 | 80 | run_config = RunConfiguration(conda_dependencies=cd) |
79 | | - |
80 | 81 | aml_compute = ws.compute_targets[aml_cluster_name] |
| 82 | +run_config.environment.docker.enabled = True |
| 83 | +run_config.environment.spark.precache_packages = False |
81 | 84 |
|
82 | 85 | jsonconfigs = PipelineData("jsonconfigs", datastore=def_blob_store) |
83 | 86 |
|
|
91 | 94 | script_name="training/train.py", |
92 | 95 | compute_target=aml_compute, |
93 | 96 | source_directory=source_directory, |
94 | | - arguments=["--config_suffix", config_suffix, "--json_config", jsonconfigs], |
| 97 | + arguments=[ |
| 98 | + "--config_suffix", config_suffix, |
| 99 | + "--json_config", jsonconfigs, |
| 100 | + "--model_name", model_name, |
| 101 | + ], |
95 | 102 | runconfig=run_config, |
96 | 103 | # inputs=[jsonconfigs], |
97 | 104 | outputs=[jsonconfigs], |
|
104 | 111 | script_name="evaluate/evaluate_model.py", |
105 | 112 | compute_target=aml_compute, |
106 | 113 | source_directory=source_directory, |
107 | | - arguments=["--config_suffix", config_suffix, "--json_config", jsonconfigs], |
| 114 | + arguments=[ |
| 115 | + "--config_suffix", config_suffix, |
| 116 | + "--json_config", jsonconfigs, |
| 117 | + ], |
108 | 118 | runconfig=run_config, |
109 | 119 | inputs=[jsonconfigs], |
110 | 120 | # outputs=[jsonconfigs], |
|
117 | 127 | script_name="register/register_model.py", |
118 | 128 | compute_target=aml_compute, |
119 | 129 | source_directory=source_directory, |
120 | | - arguments=["--config_suffix", config_suffix, "--json_config", jsonconfigs], |
| 130 | + arguments=[ |
| 131 | + "--config_suffix", config_suffix, |
| 132 | + "--json_config", jsonconfigs, |
| 133 | + "--model_name", model_name, |
| 134 | + ], |
121 | 135 | runconfig=run_config, |
122 | 136 | inputs=[jsonconfigs], |
123 | 137 | # outputs=[jsonconfigs], |
|
0 commit comments