* Updated to sklearn-1.5
* Removed deprecated 'normalize' parameter
This commit is contained in:
jeff-shepherd 2024-07-19 10:27:34 -07:00 коммит произвёл GitHub
Родитель f52c4985bf
Коммит 0fe5cf5b3d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
41 изменённых файлов: 47 добавлений и 48 удалений

Просмотреть файл

@ -73,7 +73,7 @@ outputs:
model_output: model_output:
type: uri_folder type: uri_folder
code: ./train_src code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python train.py python train.py
--training_data ${{inputs.training_data}} --training_data ${{inputs.training_data}}

Просмотреть файл

@ -6,7 +6,7 @@ tags:
author: azureml-sdk-team author: azureml-sdk-team
type: command type: command
code: ./component_src code: ./component_src
environment: azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu:1 environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
additional_includes: additional_includes:
- common_src - common_src
command: >- command: >-

Просмотреть файл

@ -12,12 +12,12 @@ description: pipeline component with inline job
jobs: jobs:
hello_job: hello_job:
type: command type: command
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: echo 'hello' command: echo 'hello'
world_job: world_job:
type: command type: command
command: echo 'world' command: echo 'world'
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
# </jobs> # </jobs>

Просмотреть файл

@ -23,7 +23,7 @@ outputs:
model_output: model_output:
type: uri_folder type: uri_folder
code: ./train_src code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python train.py python train.py
--training_data ${{inputs.training_data}} --training_data ${{inputs.training_data}}

Просмотреть файл

@ -8,6 +8,6 @@ jobs:
type: command type: command
component: component:
code: src code: src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python hello.py python hello.py

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
outputs: outputs:
eval_output: eval_output:
type: uri_folder type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: ./eval_src code: ./eval_src
command: >- command: >-
python eval.py python eval.py

Просмотреть файл

@ -11,7 +11,7 @@ inputs:
outputs: outputs:
score_output: score_output:
type: uri_folder type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: ./score_src code: ./score_src
command: >- command: >-
python score.py python score.py

Просмотреть файл

@ -18,7 +18,7 @@ outputs:
model_output: model_output:
type: uri_folder type: uri_folder
code: ./train_src code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python train.py python train.py
--training_data ${{inputs.training_data}} --training_data ${{inputs.training_data}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
outputs: outputs:
eval_output: eval_output:
type: uri_folder type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: ./eval_src code: ./eval_src
command: >- command: >-
python eval.py python eval.py

Просмотреть файл

@ -11,7 +11,7 @@ inputs:
outputs: outputs:
score_output: score_output:
type: uri_folder type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: ./score_src code: ./score_src
command: >- command: >-
python score.py python score.py

Просмотреть файл

@ -25,7 +25,7 @@ outputs:
model_output: model_output:
type: uri_folder type: uri_folder
code: ./train_src code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python train.py python train.py
--training_data ${{inputs.training_data}} --training_data ${{inputs.training_data}}

Просмотреть файл

@ -7,7 +7,7 @@ version: 3
code: ./src code: ./src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python hello.py python hello.py

Просмотреть файл

@ -12,7 +12,7 @@ inputs:
outputs: outputs:
predictions: predictions:
type: uri_folder type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: ./predict_src code: ./predict_src
command: >- command: >-
python predict.py python predict.py

Просмотреть файл

@ -11,7 +11,7 @@ outputs:
prep_data: prep_data:
type: uri_folder type: uri_folder
code: ./prep_src code: ./prep_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python prep.py python prep.py
--raw_data ${{inputs.raw_data}} --raw_data ${{inputs.raw_data}}

Просмотреть файл

@ -12,7 +12,7 @@ inputs:
outputs: outputs:
score_report: score_report:
type: uri_folder type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: ./score_src code: ./score_src
command: >- command: >-
python score.py python score.py

Просмотреть файл

@ -18,7 +18,7 @@ outputs:
test_data: test_data:
type: uri_folder type: uri_folder
code: ./train_src code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python train.py python train.py
--training_data ${{inputs.training_data}} --training_data ${{inputs.training_data}}

Просмотреть файл

@ -11,7 +11,7 @@ outputs:
transformed_data: transformed_data:
type: uri_folder type: uri_folder
code: ./transform_src code: ./transform_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python transform.py python transform.py
--clean_data ${{inputs.clean_data}} --clean_data ${{inputs.clean_data}}

Просмотреть файл

@ -13,7 +13,7 @@ outputs:
predict_result: predict_result:
type: uri_folder type: uri_folder
code: ./predict-src code: ./predict-src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python predict.py python predict.py
--model ${{inputs.model}} --model ${{inputs.model}}

Просмотреть файл

@ -59,7 +59,7 @@ outputs:
code: ./train-src code: ./train-src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python train.py python train.py

Просмотреть файл

@ -12,7 +12,7 @@ outputs:
prep_data: prep_data:
type: uri_folder type: uri_folder
code: . code: .
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python prep.py python prep.py
$[[--raw_data ${{inputs.raw_data}}]] $[[--raw_data ${{inputs.raw_data}}]]

Просмотреть файл

@ -11,7 +11,7 @@ outputs:
transformed_data: transformed_data:
type: uri_folder type: uri_folder
code: . code: .
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python transform.py python transform.py
--clean_data ${{inputs.clean_data}} --clean_data ${{inputs.clean_data}}

Просмотреть файл

@ -12,7 +12,7 @@ inputs:
outputs: outputs:
predictions: predictions:
type: uri_folder type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: . code: .
command: >- command: >-
python predict.py python predict.py

Просмотреть файл

@ -12,7 +12,7 @@ inputs:
outputs: outputs:
score_report: score_report:
type: uri_folder type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: . code: .
command: >- command: >-
python score.py python score.py

Просмотреть файл

@ -18,7 +18,7 @@ outputs:
test_data: test_data:
type: uri_folder type: uri_folder
code: . code: .
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python train.py python train.py
--train_data ${{inputs.train_data}} --train_data ${{inputs.train_data}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -9,7 +9,7 @@ inputs:
model_base_name: model_base_name:
type: string type: string
code: ./src/ code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >- command: >-
python register.py python register.py
--model_input_path ${{inputs.model_input_path}} --model_input_path ${{inputs.model_input_path}}

Просмотреть файл

@ -73,4 +73,4 @@ jobs:
inference_result: ${{parent.jobs.predict_digits_mnist.outputs.job_output_file}} inference_result: ${{parent.jobs.predict_digits_mnist.outputs.job_output_file}}
command: >- command: >-
cat ${{inputs.inference_result}} cat ${{inputs.inference_result}}
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest

Просмотреть файл

@ -17,7 +17,7 @@ jobs:
prep_data: prep_data:
mode: upload mode: upload
code: src/prep code: src/prep
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
compute: azureml:cpu-cluster compute: azureml:cpu-cluster
command: >- command: >-
python prep.py python prep.py
@ -32,7 +32,7 @@ jobs:
transformed_data: transformed_data:
mode: upload mode: upload
code: src/transform code: src/transform
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
compute: azureml:cpu-cluster compute: azureml:cpu-cluster
command: >- command: >-
python transform.py python transform.py
@ -48,7 +48,7 @@ jobs:
test_data: test_data:
mode: upload mode: upload
code: src/train code: src/train
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
compute: azureml:cpu-cluster compute: azureml:cpu-cluster
command: >- command: >-
python train.py python train.py
@ -64,7 +64,7 @@ jobs:
outputs: outputs:
predictions: predictions:
code: src/predict code: src/predict
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
compute: azureml:cpu-cluster compute: azureml:cpu-cluster
command: >- command: >-
python predict.py python predict.py
@ -80,7 +80,7 @@ jobs:
outputs: outputs:
score_report: score_report:
code: src/score code: src/score
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
compute: azureml:cpu-cluster compute: azureml:cpu-cluster
command: >- command: >-
python score.py python score.py

Просмотреть файл

@ -12,7 +12,7 @@ inputs:
path: https://azuremlexamples.blob.core.windows.net/datasets/iris.csv path: https://azuremlexamples.blob.core.windows.net/datasets/iris.csv
epochs: 10 epochs: 10
lr: 0.1 lr: 0.1
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
compute: azureml:cpu-cluster compute: azureml:cpu-cluster
display_name: pytorch-iris-example display_name: pytorch-iris-example
experiment_name: pytorch-iris-example experiment_name: pytorch-iris-example

Просмотреть файл

@ -7,7 +7,7 @@ inputs:
diabetes_csv: diabetes_csv:
type: uri_file type: uri_file
path: https://azuremlexamples.blob.core.windows.net/datasets/diabetes.csv path: https://azuremlexamples.blob.core.windows.net/datasets/diabetes.csv
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
compute: azureml:cpu-cluster compute: azureml:cpu-cluster
display_name: sklearn-diabetes-example display_name: sklearn-diabetes-example
experiment_name: sklearn-diabetes-example experiment_name: sklearn-diabetes-example

Просмотреть файл

@ -17,7 +17,6 @@ def main(args):
# setup parameters # setup parameters
params = { params = {
"fit_intercept": args.fit_intercept, "fit_intercept": args.fit_intercept,
"normalize": args.normalize,
"positive": args.positive, "positive": args.positive,
} }

Просмотреть файл

@ -13,7 +13,7 @@ inputs:
C: 0.8 C: 0.8
kernel: "rbf" kernel: "rbf"
coef0: 0.1 coef0: 0.1
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
compute: azureml:cpu-cluster compute: azureml:cpu-cluster
display_name: sklearn-iris-example display_name: sklearn-iris-example
experiment_name: sklearn-iris-example experiment_name: sklearn-iris-example

Просмотреть файл

@ -8,17 +8,17 @@ inputs:
jobs: jobs:
a: a:
command: echo hello ${{inputs.hello_string}} command: echo hello ${{inputs.hello_string}}
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
inputs: inputs:
hello_string: ${{parent.inputs.hello_string_top_level_input}} hello_string: ${{parent.inputs.hello_string_top_level_input}}
b: b:
command: echo "world" >> ${{outputs.world_output}}/world.txt command: echo "world" >> ${{outputs.world_output}}/world.txt
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
outputs: outputs:
world_output: world_output:
c: c:
command: echo ${{inputs.world_input}}/world.txt command: echo ${{inputs.world_input}}/world.txt
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
inputs: inputs:
world_input: ${{parent.jobs.b.outputs.world_output}} world_input: ${{parent.jobs.b.outputs.world_output}}