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

Update sdk helper to include cli #1939

Merged
merged 8 commits into from
Dec 14, 2022
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ test_data:

limits:
timeout_minutes: 180
max_trials: 40
max_concurrent_trials: 5
max_trials: 10
max_concurrent_trials: 2
trial_timeout_minutes: 20
enable_early_termination: true
exit_score: 0.92
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ n_cross_validations: 3
limits:
timeout_minutes: 20
max_trials: 10
max_concurrent_trials: 4
max_concurrent_trials: 2
trial_timeout_minutes: 20
enable_early_termination: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ featurization:
limits:
timeout_minutes: 15
max_trials: 10
max_concurrent_trials: 4
max_concurrent_trials: 2
max_cores_per_trial: -1
trial_timeout_minutes: 15
enable_early_termination: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ n_cross_validations: auto
limits:
timeout_minutes: 20
max_trials: 10
max_concurrent_trials: 4
max_concurrent_trials: 2
trial_timeout_minutes: 20
enable_early_termination: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ validation_data:

limits:
timeout_minutes: 60
max_concurrent_trials: 4
max_concurrent_trials: 2
enable_early_termination: true

forecasting:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ log_verbosity: debug
limits:
timeout_minutes: 120
max_nodes: 4
max_trials: 2
max_trials: 10
max_concurrent_trials: 2

training_data:
Expand Down
1 change: 1 addition & 0 deletions infra/sdk_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ function replace_template_values() {
-e "s/ml_client.workspaces.begin_create(ws_private_link)/# ws_from_config = MLClient.from_config()/g" \
-e "s/version=mltable_version/version=1/g" \
-e "s/max_trials=10/max_trials=2/g" \
-e "s/max_trials: 10/max_trials: 2/g" \
"${FILENAME}"
echo "$(<"${FILENAME}")"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@
"source": [
"# General job parameters\n",
"compute_name = \"cpu-cluster\"\n",
"max_trials = 5\n",
"exp_name = \"dpv2-classifier-experiment\""
]
},
Expand Down Expand Up @@ -250,8 +249,8 @@
"classification_job.set_limits(\n",
" timeout_minutes=600,\n",
" trial_timeout_minutes=20,\n",
" max_trials=max_trials,\n",
" # max_concurrent_trials = 4,\n",
" max_trials=10,\n",
" # max_concurrent_trials=2,\n",
" # max_cores_per_trial: -1,\n",
" enable_early_termination=True,\n",
")\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@
"source": [
"# General job parameters\n",
"compute_name = \"cpu-cluster\"\n",
"max_trials = 5\n",
"exp_name = \"dpv2-classifier-experiment\""
]
},
Expand Down Expand Up @@ -237,8 +236,8 @@
"classification_job.set_limits(\n",
" timeout_minutes=600,\n",
" trial_timeout_minutes=20,\n",
" max_trials=max_trials,\n",
" # max_concurrent_trials = 4,\n",
" max_trials=10,\n",
" # max_concurrent_trials=2,\n",
" # max_cores_per_trial: -1,\n",
" enable_early_termination=True,\n",
")\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@
"outputs": [],
"source": [
"# general job parameters\n",
"max_trials = 5\n",
"exp_name = \"sdkv2-forecasting-github-dau\"\n",
"\n",
"target_column_name = \"count\"\n",
Expand Down Expand Up @@ -324,8 +323,8 @@
"forecasting_job.set_limits(\n",
" timeout_minutes=120,\n",
" trial_timeout_minutes=30,\n",
" max_trials=max_trials,\n",
" max_concurrent_trials=4,\n",
" max_trials=10,\n",
" max_concurrent_trials=2,\n",
")\n",
"\n",
"# Specialized properties for Time Series Forecasting training\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@
"outputs": [],
"source": [
"# General job parameters.\n",
"max_trials = 5\n",
"exp_name = \"dpv2-forecasting-experiment\"\n",
"target_column_name = \"Quantity\"\n",
"\n",
Expand Down Expand Up @@ -505,7 +504,7 @@
"forecasting_job.set_limits(\n",
" timeout_minutes=60,\n",
" trial_timeout_minutes=20,\n",
" max_trials=max_trials,\n",
" max_trials=10,\n",
" enable_early_termination=True,\n",
")\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
" timeout_minutes=18,\n",
" trial_timeout_minutes=5,\n",
" enable_early_termination=True,\n",
" max_concurrent_trials=4,\n",
" max_concurrent_trials=2,\n",
")\n",
"\n",
"# Specialized properties for Time Series Forecasting training\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@
"source": [
"# general job parameters\n",
"compute_name = \"adv-energy-cluster-v2\"\n",
"max_trials = 5\n",
"exp_name = \"dpv2-forecasting-experiment\""
]
},
Expand Down Expand Up @@ -272,8 +271,8 @@
"forecasting_job.set_limits(\n",
" timeout_minutes=600,\n",
" trial_timeout_minutes=20,\n",
" max_trials=max_trials,\n",
" # max_concurrent_trials = 4,\n",
" max_trials=10,\n",
" # max_concurrent_trials=2,\n",
" # max_cores_per_trial: -1,\n",
" enable_early_termination=True,\n",
")\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@
")\n",
"\n",
"text_ner_job.set_limits(\n",
" timeout_minutes=120, max_trials=4, max_concurrent_trials=2, max_nodes=4\n",
" timeout_minutes=120,\n",
" max_trials=10,\n",
" max_concurrent_trials=2,\n",
" max_nodes=4\n",
")\n",
"\n",
"text_ner_job.extend_search_space(\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@
"source": [
"# general job parameters\n",
"compute_name = \"cpu-cluster\"\n",
"max_trials = 5\n",
"exp_name = \"dpv2-regression-experiment\""
]
},
Expand Down Expand Up @@ -212,8 +211,8 @@
"regression_job.set_limits(\n",
" timeout_minutes=600,\n",
" trial_timeout_minutes=20,\n",
" max_trials=max_trials,\n",
" # max_concurrent_trials = 4,\n",
" max_trials=10,\n",
" # max_concurrent_trials=2,\n",
" # max_cores_per_trial: -1,\n",
" enable_early_termination=True,\n",
")"
Expand Down