-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* serverless samples * Update cli-automl-classification-task-bankmarketing-serverless.yml * Create automl-classification-task-bankmarketing-serverless.ipynb * Update automl-classification-task-bankmarketing-serverless.ipynb * Update automl-classification-task-bankmarketing-serverless.ipynb * Update automl-classification-task-bankmarketing-serverless.ipynb * Update automl-classification-task-bankmarketing-serverless.ipynb * Create pipeline-serverless.yml * Create pipeline_with_components_from_yaml_serverless.ipynb * Update pipeline_with_components_from_yaml_serverless.ipynb * Update pipeline_with_components_from_yaml_serverless.ipynb * add metadata to notebook cell * Update azureml-in-a-day.ipynb * Update azureml-in-a-day.ipynb * Update azureml-in-a-day.ipynb * Update e2e-ml-workflow.ipynb * Update e2e-ml-workflow.ipynb * Update quickstart.ipynb * Update quickstart.ipynb * Update quickstart.ipynb * Update quickstart.ipynb * Update quickstart.ipynb * Update quickstart.ipynb * Update quickstart.ipynb * Update train-model.ipynb * Update train-model.ipynb * Update train-model.ipynb * Update pipeline.ipynb * Update pipeline.ipynb * Update pipeline.ipynb * Update quickstart.ipynb * Update pipeline.ipynb * Update pipeline.ipynb * Update quickstart.ipynb * Update train-model.ipynb * Update train-model.ipynb * Update train-model.ipynb * Update cli-automl-classification-task-bankmarketing-serverless.yml * Update pipeline-serverless.yml * Update hello-code.yml * Update hello-data-uri-folder.yml * Update hello-dataset.yml * Update hello-git.yml * Update hello-interactive.yml * Update hello-iris-datastore-file.yml * Update hello-iris-datastore-folder.yml * Update hello-iris-file.yml * Update hello-iris-folder.yml * Update hello-iris-literal.yml * Update hello-mlflow.yml * Update hello-model-as-input.yml * Update hello-model-as-output.yml * Update hello-notebook.yml * Create hello-pipeline-abc-serverless.yml * Update hello-pipeline-abc-serverless.yml * Create hello-pipeline-customize-output-file-serverless.yml * Update hello-pipeline-customize-output-file-serverless.yml * Create hello-pipeline-customize-output-folder-serverless.yml * Update hello-pipeline-customize-output-file-serverless.yml * Update hello-pipeline-customize-output-folder-serverless.yml * Create hello-pipeline-default-artifacts-serverless.yml * Update hello-pipeline-default-artifacts-serverless.yml * Update hello-pipeline-default-artifacts-serverless.yml * Create hello-pipeline-io-serverless.yml * Update hello-pipeline-io-serverless.yml * Create hello-pipeline-settings-serverless.yml * Update hello-pipeline-settings-serverless.yml * Create hello-pipeline-serverless.yml * Update hello-pipeline-serverless.yml * Update hello-pipeline-serverless.yml * Update hello-world.yml * Update hello-world-output.yml * Update hello-world-output-data.yml * Update hello-world-org.yml * Update hello-world-input.yml * Update hello-world-env-var.yml * Update automl-classification-task-bankmarketing-serverless.ipynb * Update automl-classification-task-bankmarketing-serverless.ipynb * Update automl-classification-task-bankmarketing-serverless.ipynb * Update cli-automl-classification-task-bankmarketing-serverless.yml * Update auto-ml-forecasting-github-dau.ipynb * Update auto-ml-forecasting-github-dau.ipynb * Update auto-ml-forecasting-github-dau.ipynb * Update auto-ml-forecasting-github-dau.ipynb * Update auto-ml-forecasting-github-dau.ipynb * Update auto-ml-forecasting-github-dau.ipynb * Update cli-automl-forecasting-task-github-dau.yml * Update cli-automl-forecasting-orange-juice-sales.yml * Update automl-forecasting-orange-juice-sales-mlflow.ipynb * Update automl-forecasting-orange-juice-sales-mlflow.ipynb * Update automl-forecasting-orange-juice-sales-mlflow.ipynb * Update automl-forecasting-orange-juice-sales-mlflow.ipynb * Update automl-forecasting-orange-juice-sales-mlflow.ipynb * Update automl-forecasting-orange-juice-sales-mlflow.ipynb * Update automl-forecasting-orange-juice-sales-mlflow.ipynb * Update hello-sweep.yml * Update train-model.ipynb * Update e2e-ml-workflow.ipynb * Update hello-automl-job-basic.yml * Update auto-ml-forecasting-github-dau.ipynb * Update auto-ml-forecasting-github-dau.ipynb * Update automl-forecasting-orange-juice-sales-mlflow.ipynb * Update quickstart.ipynb * Update train-model.ipynb * Update pipeline.ipynb * Update auto-ml-forecasting-github-dau.ipynb * Update auto-ml-forecasting-github-dau.ipynb --------- Co-authored-by: Sheri Gilley <sgilley@microsoft.com>
- Loading branch information
Showing
42 changed files
with
3,285 additions
and
1,904 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
...sification-task-bankmarketing/cli-automl-classification-task-bankmarketing-serverless.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
$schema: https://azuremlsdk2.blob.core.windows.net/preview/0.0.1/autoMLJob.schema.json | ||
type: automl | ||
experiment_name: dpv2-cli-automl-classifier-experiment | ||
description: A Classification job using bank marketing | ||
# Serverless compute is used to run this AutoML job. | ||
# Through serverless compute, Azure Machine Learning takes care of creating, scaling, deleting, patching and managing compute, along with providing managed network isolation, reducing the burden on you. | ||
|
||
task: classification | ||
log_verbosity: debug | ||
primary_metric: accuracy | ||
|
||
target_column_name: "y" | ||
|
||
#validation_data_size: 0.20 | ||
#n_cross_validations: 5 | ||
#test_data_size: 0.1 | ||
|
||
training_data: | ||
path: "./training-mltable-folder" | ||
type: mltable | ||
validation_data: | ||
path: "./validation-mltable-folder" | ||
type: mltable | ||
test_data: | ||
path: "./test-mltable-folder" | ||
type: mltable | ||
|
||
limits: | ||
timeout_minutes: 180 | ||
max_trials: 40 | ||
max_concurrent_trials: 5 | ||
trial_timeout_minutes: 20 | ||
enable_early_termination: true | ||
exit_score: 0.92 | ||
|
||
featurization: | ||
mode: custom | ||
transformer_params: | ||
imputer: | ||
- fields: ["job"] | ||
parameters: | ||
strategy: most_frequent | ||
blocked_transformers: | ||
- WordEmbedding | ||
training: | ||
enable_model_explainability: true | ||
allowed_training_algorithms: | ||
- gradient_boosting | ||
- logistic_regression | ||
# Resources to run this serverless job | ||
resources: | ||
instance_type="Standard_E4s_v3" | ||
instance_count=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ command: ls | |
code: src | ||
environment: | ||
image: library/python:latest | ||
compute: azureml:cpu-cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ command: >- | |
code: src | ||
environment: | ||
image: library/python:latest | ||
compute: azureml:cpu-cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ command: | | |
code: src | ||
environment: | ||
image: library/python:latest | ||
compute: azureml:cpu-cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json | ||
type: pipeline | ||
display_name: hello_pipeline_abc | ||
# Serverless compute is used to run this pipeline job. | ||
# Through serverless compute, Azure Machine Learning takes care of creating, scaling, deleting, patching and managing compute, along with providing managed network isolation, reducing the burden on you. | ||
settings: | ||
default_compute: azureml:serverless | ||
|
||
inputs: | ||
hello_string_top_level_input: "hello world" | ||
jobs: | ||
a: | ||
command: echo hello ${{inputs.hello_string}} | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
inputs: | ||
hello_string: ${{parent.inputs.hello_string_top_level_input}} | ||
b: | ||
command: echo "world" >> ${{outputs.world_output}}/world.txt | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
outputs: | ||
world_output: | ||
c: | ||
command: echo ${{inputs.world_input}}/world.txt | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
inputs: | ||
world_input: ${{parent.jobs.b.outputs.world_output}} | ||
|
19 changes: 19 additions & 0 deletions
19
cli/jobs/basics/hello-pipeline-customize-output-file-serverless.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json | ||
type: pipeline | ||
display_name: hello_pipeline_customize_output_file | ||
# Serverless compute is used to run this pipeline job. | ||
# Through serverless compute, Azure Machine Learning takes care of creating, scaling, deleting, patching and managing compute, along with providing managed network isolation, reducing the burden on you. | ||
settings: | ||
default_compute: azureml:serverless | ||
|
||
outputs: | ||
output: | ||
type: uri_file | ||
path: azureml://datastores/workspaceblobstore/paths/${{name}}/hello_world.txt | ||
mode: rw_mount | ||
jobs: | ||
hello_world: | ||
command: echo "hello" && echo "world" > ${{outputs.output}} | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
outputs: | ||
output: ${{parent.outputs.output}} |
15 changes: 15 additions & 0 deletions
15
cli/jobs/basics/hello-pipeline-customize-output-folder-serverless.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json | ||
type: pipeline | ||
display_name: hello_pipeline_customize_output_folder | ||
# Serverless compute is used to run this pipeline job. | ||
# Through serverless compute, Azure Machine Learning takes care of creating, scaling, deleting, patching and managing compute, along with providing managed network isolation, reducing the burden on you. | ||
settings: | ||
default_compute: azureml:serverless | ||
jobs: | ||
hello_world: | ||
command: echo "hello" && echo "world" > ${{outputs.output}}/hello_world-folder.txt | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
outputs: | ||
output: | ||
type: uri_folder | ||
path: azureml://datastores/workspaceblobstore/paths/${{name}}/ |
19 changes: 19 additions & 0 deletions
19
cli/jobs/basics/hello-pipeline-default-artifacts-serverless.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json | ||
type: pipeline | ||
display_name: hello_pipeline_default_artifacts | ||
# Serverless compute is used to run this pipeline job. | ||
# Through serverless compute, Azure Machine Learning takes care of creating, scaling, deleting, patching and managing compute, along with providing managed network isolation, reducing the burden on you. | ||
settings: | ||
default_compute: azureml:serverless | ||
jobs: | ||
hello_job: | ||
command: echo "hello" && echo "world" > ./outputs/world.txt | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
outputs: | ||
artifacts: | ||
world_job: | ||
command: cat ${{inputs.world_input}}/outputs/world.txt | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
inputs: | ||
world_input: ${{parent.jobs.hello_job.outputs.artifacts}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json | ||
type: pipeline | ||
display_name: hello_pipeline_io | ||
# Serverless compute is used to run this pipeline job. | ||
# Through serverless compute, Azure Machine Learning takes care of creating, scaling, deleting, patching and managing compute, along with providing managed network isolation, reducing the burden on you. | ||
settings: | ||
default_compute: azureml:serverless | ||
jobs: | ||
hello_job: | ||
command: echo "hello" && echo "world" > ${{outputs.world_output}}/world.txt | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
outputs: | ||
world_output: | ||
world_job: | ||
command: cat ${{inputs.world_input}}/world.txt | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu:1 | ||
inputs: | ||
world_input: ${{parent.jobs.hello_job.outputs.world_output}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json | ||
type: pipeline | ||
display_name: hello_pipeline | ||
# Serverless compute is used to run this pipeline job. | ||
# Through serverless compute, Azure Machine Learning takes care of creating, scaling, deleting, patching and managing compute, along with providing managed network isolation, reducing the burden on you. | ||
settings: | ||
default_compute: azureml:serverless | ||
jobs: | ||
hello_job: | ||
command: echo "hello" | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
world_job: | ||
command: echo "world" | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json | ||
type: pipeline | ||
display_name: hello_pipeline_settings | ||
# Serverless compute is used to run this pipeline job. | ||
# Through serverless compute, Azure Machine Learning takes care of creating, scaling, deleting, patching and managing compute, along with providing managed network isolation, reducing the burden on you. | ||
settings: | ||
default_datastore: azureml:workspaceblobstore | ||
default_compute: azureml:serverless | ||
jobs: | ||
hello_job: | ||
command: echo 202204190 & echo "hello" | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu:1 | ||
world_job: | ||
command: echo 202204190 & echo "hello" | ||
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ environment: | |
inputs: | ||
hello_string: "hello world" | ||
hello_number: 42 | ||
compute: azureml:cpu-cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ outputs: | |
hello_output: | ||
environment: | ||
image: python | ||
compute: azureml:cpu-cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.