microsoft / solution-accelerator-many-models

MIT License
194 stars 88 forks source link

issue in CustomScript_Forecasting_Pipeline #152

Open himanshuahlawat31 opened 2 years ago

himanshuahlawat31 commented 2 years ago

Hi we are facing issue in CustomScript_Forecasting_Pipeline the pipeline that we are running in cell 14 is getting failed .Please find the screenshot below for reference:

image
nchandhi commented 2 years ago

Please update the code in Step 5.2 with below code snippet to resolve the error:

from azureml.pipeline.steps import PythonScriptStep from azureml.core.runconfig import RunConfiguration

copy_pred_runconfig = RunConfiguration() copy_pred_runconfig.environment = forecast_env

upload_predictions_step = PythonScriptStep( name="copy_predictions", script_name="copy_predictions.py", compute_target=compute, source_directory='./scripts', runconfig = copy_pred_runconfig, inputs=[output_dref, output_dir], allow_reuse=False, arguments=['--parallel_run_step_output', output_dir, '--output_dir', output_dref, '--target_column', 'Quantity', '--timestamp_column', 'WeekStarting', '--timeseries_id_columns', 'Store', 'Brand'] )