Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json
type: pipeline
display_name: pipeline_with_hyperparameter_sweep
display_name: pipeline_with_hyperparameter_sweep_fix
description: Tune hyperparameters using TF component
settings:
default_compute: azureml:cpu-cluster
Expand All @@ -24,7 +24,9 @@ jobs:
random_state: 42
outputs:
model_output:
type: uri_folder
test_data:
type: uri_folder
sampling_algorithm: random
trial: ./train.yml
search_space:
Expand Down Expand Up @@ -56,4 +58,4 @@ jobs:
predict_result:
component: ./predict.yml



Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: train_model
display_name: train_model
version: 1

inputs:
inputs:
data:
type: uri_folder
type: uri_file
c_value:
type: number
default: 1.0
Expand All @@ -20,7 +20,7 @@ inputs:
gamma:
type: string
default: scale
coef0:
coef0:
type: number
default: 0
shrinking:
Expand Down Expand Up @@ -53,30 +53,12 @@ inputs:

outputs:
model_output:
type: mlflow_model
type: uri_folder
test_data:
type: uri_folder

code: ./train-src

code: ./train-src
environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest

command: >-
python train.py
--data ${{inputs.data}}
--C ${{inputs.c_value}}
--kernel ${{inputs.kernel}}
--degree ${{inputs.degree}}
--gamma ${{inputs.gamma}}
--coef0 ${{inputs.coef0}}
--shrinking ${{inputs.shrinking}}
--probability ${{inputs.probability}}
--tol ${{inputs.tol}}
--cache_size ${{inputs.cache_size}}
--verbose ${{inputs.verbose}}
--max_iter ${{inputs.max_iter}}
--decision_function_shape ${{inputs.decision_function_shape}}
--break_ties ${{inputs.break_ties}}
--random_state ${{inputs.random_state}}
--model_output ${{outputs.model_output}}
--test_data ${{outputs.test_data}}
bash -c "python train.py --data '${{inputs.data}}' --C '${{inputs.c_value}}' --kernel '${{inputs.kernel}}' --degree '${{inputs.degree}}' --gamma '${{inputs.gamma}}' --coef0 '${{inputs.coef0}}' --shrinking '${{inputs.shrinking}}' --probability '${{inputs.probability}}' --tol '${{inputs.tol}}' --cache_size '${{inputs.cache_size}}' --verbose '${{inputs.verbose}}' --max_iter '${{inputs.max_iter}}' --decision_function_shape '${{inputs.decision_function_shape}}' --break_ties '${{inputs.break_ties}}' --random_state '${{inputs.random_state}}' --model_output '${{outputs.model_output}}' --test_data '${{outputs.test_data}}'"
Loading