Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to sklearn-1.5 #3297

Merged
merged 2 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/assets/component/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ outputs:
model_output:
type: uri_folder
code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python train.py
--training_data ${{inputs.training_data}}
Expand Down
2 changes: 1 addition & 1 deletion cli/assets/component/component_additional_includes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags:
author: azureml-sdk-team
type: command
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:
- common_src
command: >-
Expand Down
4 changes: 2 additions & 2 deletions cli/assets/component/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ description: pipeline component with inline job
jobs:
hello_job:
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'

world_job:
type: command
command: echo 'world'
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest

# </jobs>
2 changes: 1 addition & 1 deletion cli/assets/component/train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ outputs:
model_output:
type: uri_folder
code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python train.py
--training_data ${{inputs.training_data}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
type: command
component:
code: src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
outputs:
eval_output:
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
command: >-
python eval.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inputs:
outputs:
score_output:
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
command: >-
python score.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ outputs:
model_output:
type: uri_folder
code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python train.py
--training_data ${{inputs.training_data}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
outputs:
eval_output:
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
command: >-
python eval.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inputs:
outputs:
score_output:
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
command: >-
python score.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ outputs:
model_output:
type: uri_folder
code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python train.py
--training_data ${{inputs.training_data}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: 3

code: ./src

environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest

command: >-
python hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
outputs:
predictions:
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
command: >-
python predict.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ outputs:
prep_data:
type: uri_folder
code: ./prep_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python prep.py
--raw_data ${{inputs.raw_data}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
outputs:
score_report:
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
command: >-
python score.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ outputs:
test_data:
type: uri_folder
code: ./train_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python train.py
--training_data ${{inputs.training_data}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ outputs:
transformed_data:
type: uri_folder
code: ./transform_src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python transform.py
--clean_data ${{inputs.clean_data}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ outputs:
predict_result:
type: uri_folder
code: ./predict-src
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python predict.py
--model ${{inputs.model}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ outputs:

code: ./train-src

environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest

command: >-
python train.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ outputs:
prep_data:
type: uri_folder
code: .
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python prep.py
$[[--raw_data ${{inputs.raw_data}}]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ outputs:
transformed_data:
type: uri_folder
code: .
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python transform.py
--clean_data ${{inputs.clean_data}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
outputs:
predictions:
type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: .
command: >-
python predict.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
outputs:
score_report:
type: uri_folder
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
code: .
command: >-
python score.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ outputs:
test_data:
type: uri_folder
code: .
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python train.py
--train_data ${{inputs.train_data}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
model_base_name:
type: string
code: ./src/
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
command: >-
python register.py
--model_input_path ${{inputs.model_input_path}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:
inference_result: ${{parent.jobs.predict_digits_mnist.outputs.job_output_file}}
command: >-
cat ${{inputs.inference_result}}
environment: azureml://registries/azureml/environments/sklearn-1.0/labels/latest
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
10 changes: 5 additions & 5 deletions cli/jobs/pipelines/nyc-taxi/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
prep_data:
mode: upload
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
command: >-
python prep.py
Expand All @@ -32,7 +32,7 @@ jobs:
transformed_data:
mode: upload
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
command: >-
python transform.py
Expand All @@ -48,7 +48,7 @@ jobs:
test_data:
mode: upload
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
command: >-
python train.py
Expand All @@ -64,7 +64,7 @@ jobs:
outputs:
predictions:
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
command: >-
python predict.py
Expand All @@ -80,7 +80,7 @@ jobs:
outputs:
score_report:
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
command: >-
python score.py
Expand Down
2 changes: 1 addition & 1 deletion cli/jobs/single-step/pytorch/iris/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
path: https://azuremlexamples.blob.core.windows.net/datasets/iris.csv
epochs: 10
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
display_name: pytorch-iris-example
experiment_name: pytorch-iris-example
Expand Down
2 changes: 1 addition & 1 deletion cli/jobs/single-step/scikit-learn/diabetes/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
diabetes_csv:
type: uri_file
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
display_name: sklearn-diabetes-example
experiment_name: sklearn-diabetes-example
Expand Down
1 change: 0 additions & 1 deletion cli/jobs/single-step/scikit-learn/diabetes/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def main(args):
# setup parameters
params = {
"fit_intercept": args.fit_intercept,
"normalize": args.normalize,
"positive": args.positive,
}

Expand Down
2 changes: 1 addition & 1 deletion cli/jobs/single-step/scikit-learn/iris/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
C: 0.8
kernel: "rbf"
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
display_name: sklearn-iris-example
experiment_name: sklearn-iris-example
Expand Down
Loading
Loading