Skip to content

Commit 2fe8164

Browse files
authored
Reorganizing Samples into v1 and v2 (Azure#1680)
* Moved all setup related folders into a parent setup folder * Moved python-sdk into v1 * python-sdk workflows changed to v1 folder * Moved notebooks folder into v1 * Update readme.py * Updated workflows for v1 notebooks folder * Moved scripts folder into v1 * moved all sdk code into sdk/python * Updating sdkv2 workflows * moving .net into sdk folder * Updating README files * Updating README * Updating README * Fixing sdk v2 workflows * Fixing custom workflows * Adding the missing json files * Update docs.yml * Manually fixing workflows for python-sdk since readme.py does not seem to generate them
1 parent f28eb53 commit 2fe8164

File tree

982 files changed

+357689
-357415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

982 files changed

+357689
-357415
lines changed

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
run: pip install -r dev-requirements.txt
2323
- name: run docs checker script
2424
run: python docs.py
25-
working-directory: setup-repo
25+
working-directory: setup/setup-repo

.github/workflows/notebooks-basics.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
branches:
77
- main
88
paths:
9-
- notebooks/basics/**
9+
- v1/notebooks/basics/**
1010
- .github/workflows/notebooks-basics.yml
11-
- notebooks/dev-requirements.txt
11+
- v1/notebooks/dev-requirements.txt
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
@@ -21,22 +21,22 @@ jobs:
2121
python-version: "3.8"
2222
- name: Run Install packages
2323
run: |
24-
chmod +x ./scripts/install-packages.sh
25-
./scripts/install-packages.sh
24+
chmod +x ./v1/scripts/install-packages.sh
25+
./v1/scripts/install-packages.sh
2626
shell: bash
2727
- name: pip install notebook reqs
28-
run: pip install -r notebooks/dev-requirements.txt
28+
run: pip install -r v1/notebooks/dev-requirements.txt
2929
- name: azure login
3030
uses: azure/login@v1
3131
with:
3232
creds: ${{secrets.AZ_CREDS}}
3333
- name: Run update-azure-extensions
3434
run: |
35-
chmod +x ./scripts/update-azure-extensions.sh
36-
./scripts/update-azure-extensions.sh
35+
chmod +x ./v1/scripts/update-azure-extensions.sh
36+
./v1/scripts/update-azure-extensions.sh
3737
shell: bash
3838
- name: attach to workspace
3939
run: az ml folder attach -w main-python-sdk -g azureml-examples
4040
- name: run 1.train-lightgbm-local.ipynb
4141
run: papermill 1.train-lightgbm-local.ipynb - -k python
42-
working-directory: notebooks/basics
42+
working-directory: v1/notebooks/basics

.github/workflows/notebooks-cloud-data.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
branches:
77
- main
88
paths:
9-
- notebooks/cloud-data/**
9+
- v1/notebooks/cloud-data/**
1010
- .github/workflows/notebooks-cloud-data.yml
11-
- notebooks/dev-requirements.txt
11+
- v1/notebooks/dev-requirements.txt
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
@@ -25,22 +25,22 @@ jobs:
2525
python-version: "3.8"
2626
- name: Run Install packages
2727
run: |
28-
chmod +x ./scripts/install-packages.sh
29-
./scripts/install-packages.sh
28+
chmod +x ./v1/scripts/install-packages.sh
29+
./v1/scripts/install-packages.sh
3030
shell: bash
3131
- name: pip install notebook reqs
32-
run: pip install -r notebooks/dev-requirements.txt
32+
run: pip install -r v1/notebooks/dev-requirements.txt
3333
- name: azure login
3434
uses: azure/login@v1
3535
with:
3636
creds: ${{secrets.AZ_CREDS}}
3737
- name: Run update-azure-extensions
3838
run: |
39-
chmod +x ./scripts/update-azure-extensions.sh
40-
./scripts/update-azure-extensions.sh
39+
chmod +x ./v1/scripts/update-azure-extensions.sh
40+
./v1/scripts/update-azure-extensions.sh
4141
shell: bash
4242
- name: attach to workspace
4343
run: az ml folder attach -w main-python-sdk -g azureml-examples
4444
- name: run ${{matrix.notebook}}
4545
run: papermill ${{matrix.notebook}} - -k python
46-
working-directory: notebooks/cloud-data
46+
working-directory: v1/notebooks/cloud-data

.github/workflows/notebooks-mlflow.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
python-version: "3.8"
2222
- name: Run Install packages
2323
run: |
24-
chmod +x ./scripts/install-packages.sh
25-
./scripts/install-packages.sh
24+
chmod +x ./v1/scripts/install-packages.sh
25+
./v1/scripts/install-packages.sh
2626
shell: bash
2727
- name: pip install notebook reqs
2828
run: pip install -r notebooks/dev-requirements.txt
@@ -32,8 +32,8 @@ jobs:
3232
creds: ${{secrets.AZ_CREDS}}
3333
- name: Run update-azure-extensions
3434
run: |
35-
chmod +x ./scripts/update-azure-extensions.sh
36-
./scripts/update-azure-extensions.sh
35+
chmod +x ./v1/scripts/update-azure-extensions.sh
36+
./v1/scripts/update-azure-extensions.sh
3737
shell: bash
3838
- name: attach to workspace
3939
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg

.github/workflows/notebooks-using-mlflow.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
branches:
77
- main
88
paths:
9-
- notebooks/using-mlflow/**
9+
- v1/notebooks/using-mlflow/**
1010
- .github/workflows/notebooks-using-mlflow.yml
11-
- notebooks/dev-requirements.txt
11+
- v1/notebooks/dev-requirements.txt
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
@@ -21,19 +21,19 @@ jobs:
2121
python-version: "3.8"
2222
- name: Run Install packages
2323
run: |
24-
chmod +x ./scripts/install-packages.sh
25-
./scripts/install-packages.sh
24+
chmod +x ./v1/scripts/install-packages.sh
25+
./v1/scripts/install-packages.sh
2626
shell: bash
2727
- name: pip install notebook reqs
28-
run: pip install -r notebooks/dev-requirements.txt
28+
run: pip install -r v1/notebooks/dev-requirements.txt
2929
- name: azure login
3030
uses: azure/login@v1
3131
with:
3232
creds: ${{secrets.AZ_CREDS}}
3333
- name: Run update-azure-extensions
3434
run: |
35-
chmod +x ./scripts/update-azure-extensions.sh
36-
./scripts/update-azure-extensions.sh
35+
chmod +x ./v1/scripts/update-azure-extensions.sh
36+
./v1/scripts/update-azure-extensions.sh
3737
shell: bash
3838
- name: attach to workspace
3939
run: az ml folder attach -w main-python-sdk -g azureml-examples

.github/workflows/python-sdk-deploy-pytorch-mnist-job.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
branches:
77
- main
88
paths:
9-
- python-sdk/workflows/deploy/pytorch/mnist/**
9+
- v1/python-sdk/workflows/deploy/pytorch/mnist/**
1010
- .github/workflows/python-sdk-deploy-pytorch-mnist-job.yml
11-
- python-sdk/requirements.txt
11+
- v1/python-sdk/requirements.txt
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
@@ -21,21 +21,21 @@ jobs:
2121
python-version: "3.8"
2222
- name: Run Install packages
2323
run: |
24-
chmod +x ./scripts/install-packages.sh
25-
./scripts/install-packages.sh
24+
chmod +x ./v1/scripts/install-packages.sh
25+
./v1/scripts/install-packages.sh
2626
shell: bash
2727
- name: pip install
28-
run: pip install -r python-sdk/requirements.txt
28+
run: pip install -r v1/python-sdk/requirements.txt
2929
- name: azure login
3030
uses: azure/login@v1
3131
with:
3232
creds: ${{secrets.AZ_AE_CREDS}}
3333
- name: Run update-azure-extensions
3434
run: |
35-
chmod +x ./scripts/update-azure-extensions.sh
36-
./scripts/update-azure-extensions.sh
35+
chmod +x ./v1/scripts/update-azure-extensions.sh
36+
./v1/scripts/update-azure-extensions.sh
3737
shell: bash
3838
- name: attach to workspace
3939
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg
4040
- name: run workflow
41-
run: python python-sdk/workflows/deploy/pytorch/mnist/job.py
41+
run: python v1/python-sdk/workflows/deploy/pytorch/mnist/job.py

.github/workflows/python-sdk-deploy-scikit-learn-diabetes-job.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
branches:
77
- main
88
paths:
9-
- python-sdk/workflows/deploy/scikit-learn/diabetes/**
9+
- v1/python-sdk/workflows/deploy/scikit-learn/diabetes/**
1010
- .github/workflows/python-sdk-deploy-scikit-learn-diabetes-job.yml
11-
- python-sdk/requirements.txt
11+
- v1/python-sdk/requirements.txt
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
@@ -21,21 +21,21 @@ jobs:
2121
python-version: "3.8"
2222
- name: Run Install packages
2323
run: |
24-
chmod +x ./scripts/install-packages.sh
25-
./scripts/install-packages.sh
24+
chmod +x ./v1/scripts/install-packages.sh
25+
./v1/scripts/install-packages.sh
2626
shell: bash
2727
- name: pip install
28-
run: pip install -r python-sdk/requirements.txt
28+
run: pip install -r v1/python-sdk/requirements.txt
2929
- name: azure login
3030
uses: azure/login@v1
3131
with:
3232
creds: ${{secrets.AZ_AE_CREDS}}
3333
- name: Run update-azure-extensions
3434
run: |
35-
chmod +x ./scripts/update-azure-extensions.sh
36-
./scripts/update-azure-extensions.sh
35+
chmod +x ./v1/scripts/update-azure-extensions.sh
36+
./v1/scripts/update-azure-extensions.sh
3737
shell: bash
3838
- name: attach to workspace
3939
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg
4040
- name: run workflow
41-
run: python python-sdk/workflows/deploy/scikit-learn/diabetes/job.py
41+
run: python v1/python-sdk/workflows/deploy/scikit-learn/diabetes/job.py

.github/workflows/python-sdk-experimental-automl-model-testing-classification-tsi.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- main
99
paths:
10-
- python-sdk/experimental/automl-model-testing/classification/**
10+
- v1/python-sdk/experimental/automl-model-testing/classification/**
1111
- .github/workflows/python-sdk-experimental-automl-model-testing-classification-tsi.yml
1212
jobs:
1313
build:
@@ -26,14 +26,14 @@ jobs:
2626
python-version: "3.7"
2727
- name: Run Install packages
2828
run: |
29-
chmod +x ./scripts/install-packages.sh
30-
./scripts/install-packages.sh
29+
chmod +x ./v1/scripts/install-packages.sh
30+
./v1/scripts/install-packages.sh
3131
shell: bash
3232
- name: create automl conda environment
3333
uses: conda-incubator/setup-miniconda@v2
3434
with:
3535
activate-environment: azure_automl
36-
environment-file: python-sdk/experimental/automl-model-testing/automl_env_linux.yml
36+
environment-file: v1/python-sdk/experimental/automl-model-testing/automl_env_linux.yml
3737
auto-activate-base: false
3838
- name: install papermill and set up the IPython kernel
3939
run: |
@@ -46,17 +46,17 @@ jobs:
4646
creds: ${{secrets.AZ_AE_CREDS}}
4747
- name: Run update-azure-extensions
4848
run: |
49-
chmod +x ./scripts/update-azure-extensions.sh
50-
./scripts/update-azure-extensions.sh
49+
chmod +x ./v1/scripts/update-azure-extensions.sh
50+
./v1/scripts/update-azure-extensions.sh
5151
shell: bash
5252
- name: attach to workspace
5353
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg
5454
- name: run classification-TSI.ipynb
5555
run: papermill -k python classification-TSI.ipynb classification-TSI.output.ipynb
56-
working-directory: python-sdk/experimental/automl-model-testing/classification
56+
working-directory: v1/python-sdk/experimental/automl-model-testing/classification
5757
- name: upload notebook's working folder as an artifact
5858
if: ${{ always() }}
5959
uses: actions/upload-artifact@v2
6060
with:
6161
name: classification-TSI
62-
path: python-sdk/experimental/automl-model-testing/classification
62+
path: v1/python-sdk/experimental/automl-model-testing/classification

.github/workflows/python-sdk-experimental-automl-model-testing-forecasting-tsi.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- main
99
paths:
10-
- python-sdk/experimental/automl-model-testing/forecasting/**
10+
- v1/python-sdk/experimental/automl-model-testing/forecasting/**
1111
- .github/workflows/python-sdk-experimental-automl-model-testing-forecasting-tsi.yml
1212
jobs:
1313
build:
@@ -26,14 +26,14 @@ jobs:
2626
python-version: "3.7"
2727
- name: Run Install packages
2828
run: |
29-
chmod +x ./scripts/install-packages.sh
30-
./scripts/install-packages.sh
29+
chmod +x ./v1/scripts/install-packages.sh
30+
./v1/scripts/install-packages.sh
3131
shell: bash
3232
- name: create automl conda environment
3333
uses: conda-incubator/setup-miniconda@v2
3434
with:
3535
activate-environment: azure_automl
36-
environment-file: python-sdk/experimental/automl-model-testing/automl_env_linux.yml
36+
environment-file: v1/python-sdk/experimental/automl-model-testing/automl_env_linux.yml
3737
auto-activate-base: false
3838
- name: install papermill and set up the IPython kernel
3939
run: |
@@ -46,17 +46,17 @@ jobs:
4646
creds: ${{secrets.AZ_AE_CREDS}}
4747
- name: Run update-azure-extensions
4848
run: |
49-
chmod +x ./scripts/update-azure-extensions.sh
50-
./scripts/update-azure-extensions.sh
49+
chmod +x ./v1/scripts/update-azure-extensions.sh
50+
./v1/scripts/update-azure-extensions.sh
5151
shell: bash
5252
- name: attach to workspace
5353
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg
5454
- name: run forecasting-TSI.ipynb
5555
run: papermill -k python forecasting-TSI.ipynb forecasting-TSI.output.ipynb
56-
working-directory: python-sdk/experimental/automl-model-testing/forecasting
56+
working-directory: v1/python-sdk/experimental/automl-model-testing/forecasting
5757
- name: upload notebook's working folder as an artifact
5858
if: ${{ always() }}
5959
uses: actions/upload-artifact@v2
6060
with:
6161
name: forecasting-TSI
62-
path: python-sdk/experimental/automl-model-testing/forecasting
62+
path: v1/python-sdk/experimental/automl-model-testing/forecasting

.github/workflows/python-sdk-experimental-automl-model-testing-regression-tsi.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- main
99
paths:
10-
- python-sdk/experimental/automl-model-testing/regression/**
10+
- v1/python-sdk/experimental/automl-model-testing/regression/**
1111
- .github/workflows/python-sdk-experimental-automl-model-testing-regression-tsi.yml
1212
jobs:
1313
build:
@@ -26,14 +26,14 @@ jobs:
2626
python-version: "3.7"
2727
- name: Run Install packages
2828
run: |
29-
chmod +x ./scripts/install-packages.sh
30-
./scripts/install-packages.sh
29+
chmod +x ./v1/scripts/install-packages.sh
30+
./v1/scripts/install-packages.sh
3131
shell: bash
3232
- name: create automl conda environment
3333
uses: conda-incubator/setup-miniconda@v2
3434
with:
3535
activate-environment: azure_automl
36-
environment-file: python-sdk/experimental/automl-model-testing/automl_env_linux.yml
36+
environment-file: v1/python-sdk/experimental/automl-model-testing/automl_env_linux.yml
3737
auto-activate-base: false
3838
- name: install papermill and set up the IPython kernel
3939
run: |
@@ -46,17 +46,17 @@ jobs:
4646
creds: ${{secrets.AZ_AE_CREDS}}
4747
- name: Run update-azure-extensions
4848
run: |
49-
chmod +x ./scripts/update-azure-extensions.sh
50-
./scripts/update-azure-extensions.sh
49+
chmod +x ./v1/scripts/update-azure-extensions.sh
50+
./v1/scripts/update-azure-extensions.sh
5151
shell: bash
5252
- name: attach to workspace
5353
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg
5454
- name: run regression-TSI.ipynb
5555
run: papermill -k python regression-TSI.ipynb regression-TSI.output.ipynb
56-
working-directory: python-sdk/experimental/automl-model-testing/regression
56+
working-directory: v1/python-sdk/experimental/automl-model-testing/regression
5757
- name: upload notebook's working folder as an artifact
5858
if: ${{ always() }}
5959
uses: actions/upload-artifact@v2
6060
with:
6161
name: regression-TSI
62-
path: python-sdk/experimental/automl-model-testing/regression
62+
path: v1/python-sdk/experimental/automl-model-testing/regression

0 commit comments

Comments
 (0)