Vertex AI AutoML & Tabular Workflows Submitter¶
automl_submit
¶
Submit a run (or automl family slice) to Vertex AI AutoML / Tabular Workflows.
Dispatches the four managed Vertex AI AutoML Forecasting model plugins (vertex_l2l,
vertex_tide, vertex_tft, vertex_seq2seq) through engines.automl_engine. Supports both:
- Tabular Workflow for Forecasting (
automl_mode = "tabular_workflow", default): Compiles and submits a Vertex AIPipelineJobviagoogle_cloud_pipeline_components, exposing per-stage hardware overrides (feature_transform_engine_machine_type,trainer_machine_type,trainer_replica_count,trainer_accelerator_type,trainer_accelerator_count,max_num_trials,max_parallel_trial_count) and Stage-1 tuning artifact warm-start (stage_1_tuning_result_artifact_uriorreuse_tuning_from_run_id). - Managed AutoML TrainingJob (
automl_mode = "training_job"): Submits a fully managedAutoMLForecastingTrainingJob/TimeSeriesDenseEncoderForecastingTrainingJob/TemporalFusionTransformerForecastingTrainingJob/SequenceToSequencePlusForecastingTrainingJobvia thegoogle-cloud-aiplatformSDK.
After training completes, executes a BatchPredictionJob with generate_explanation=True and
writes calibrated forecasts, backtest OOF evaluations, Tier 1 series-level feature attributions
(forecast_metadata.fit_diagnostics["feature_attributions"]), Tier 2 per-horizon-step local
attributions (forecast_predictions.explanations), and GCS tuning/model artifact URIs
(forecast_metadata.model_artifact and best_params) back to the BigQuery registry.
VertexAutoMLJobPlan
dataclass
¶
VertexAutoMLJobPlan(
display_name,
automl_mode,
models,
hardware,
gpu_type,
machine_type,
max_workers,
accelerator_count,
config_uri="",
service_account="",
)
Resolved execution summary for a vertex_automl family job (pure).
to_dict
¶
JSON-safe summary for run_jobs.job_telemetry.$.vertex_automl.
Source code in src/scale_forecasting/automl_submit.py
plan_automl_job
¶
plan_automl_job(
cfg,
models=None,
*,
run_id=None,
job_id=None,
automl_mode=None,
hardware=None,
gpu_type=None,
machine_type=None,
max_workers=None,
accelerator_count=None,
config_uri="",
service_account="",
)
Resolve a VertexAutoMLJobPlan from cfg and per-family overrides (pure).
Source code in src/scale_forecasting/automl_submit.py
submit_automl
¶
submit_automl(
cfg,
settings=None,
infra=None,
*,
wait=True,
models=None,
job_id=None,
manage_header=True,
automl_mode=None,
hardware=None,
gpu_type=None,
machine_type=None,
max_workers=None,
accelerator_count=None,
)
Execute automl models on Vertex AI and return (run_id, native_id, probe_handle).
Source code in src/scale_forecasting/automl_submit.py
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | |