forked from Azure/azureml-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-sdk-tutorial-auto-ml-forecasting-function.yml
More file actions
82 lines (82 loc) · 3.25 KB
/
python-sdk-tutorial-auto-ml-forecasting-function.yml
File metadata and controls
82 lines (82 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: auto-ml-forecasting-function
# This file is generated by v1/python-sdk/tutorials/automl-with-azureml/generate_workflows.py
on:
workflow_dispatch:
schedule:
- cron: "0 11 * * 2"
pull_request:
branches:
- main
paths:
- v1/python-sdk/tutorials/automl-with-azureml/forecasting-forecast-function/**
- v1/python-sdk/tutorials/automl-with-azureml/automl_env_linux.yml
- .github/workflows/python-sdk-tutorial-auto-ml-forecasting-function.yml
jobs:
build:
runs-on: ${{vars.V1_UBUNTU_RUNNER}}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
steps:
- name: check out repo
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Run Install packages
run: |
chmod +x ./v1/scripts/install-packages.sh
./v1/scripts/install-packages.sh
shell: bash
- name: create automl conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: azure_automl
environment-file: v1/python-sdk/tutorials/automl-with-azureml/automl_env_linux.yml
auto-activate-base: false
- name: install papermill and set up the IPython kernel
run: |
pip install papermill==2.4.0
python -m ipykernel install --user --name azure_automl --display-name "Python (azure_automl)"
pip list
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZ_CREDS}}
- name: Run update-azure-extensions
run: |
chmod +x ./v1/scripts/update-azure-extensions.sh
./v1/scripts/update-azure-extensions.sh
shell: bash
- name: attach to workspace
run: az ml folder attach -w main -g azureml-examples
- name: run auto-ml-forecasting-function.ipynb
run: papermill -k python auto-ml-forecasting-function.ipynb auto-ml-forecasting-function.output.ipynb
working-directory: v1/python-sdk/tutorials/automl-with-azureml/forecasting-forecast-function
- name: check notebook output
run: |
python v1/scripts/validation/check_notebook_output.py \
--file_name auto-ml-forecasting-function.output.ipynb \
--folder v1/python-sdk/tutorials/automl-with-azureml/forecasting-forecast-function \
--check warning stderr
- name: check experiment result
run: |
python v1/scripts/validation/check_experiment_result.py \
--file_name auto-ml-forecasting-function.output.ipynb \
--folder v1/python-sdk/tutorials/automl-with-azureml/forecasting-forecast-function \
--experiment_name automl-forecast-function-demo \
--expected_run_count 1 \
--minimum_median_score 0.00 \
--maximum_median_score 0.50 \
--metric_name normalized_root_mean_squared_error \
--absolute_minimum_score 0.0 \
--absolute_maximum_score 1.0
- name: upload notebook's working folder as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: auto-ml-forecasting-function
path: v1/python-sdk/tutorials/automl-with-azureml/forecasting-forecast-function