X3 - training a model

training a model.png|500
image: AI-300, Microsoft Learn

choosing a service.png|500
image: AI-300, Microsoft Learn

choosing compute options.png|500
image: AI-300, Microsoft Learn

pre-processing and configure featurisation

from azure.ai.ml.constants import AssetTypes
from azure.ai.ml import Input

my_training_data_input = Input(type=AssetTypes.MLTABLE, path="azureml:input-data-automl:1")
from azure.ai.ml import automl

classification_job = automl.classification(
	compute="aml-cluster",
	experiment_nmae="auto-ml-class-dev",
	training_data=my_training_data_input,
	target_column_name="Diabetic",
	primary_metric="accuracy",
	n_cross_validations=5,
	enable_model_explanability=True
)

classification_job.set_limits(
	timeout_minutes=60,
	trial_timeout_minutes=20,  # max time one trial can take
	max_trials=5,
	enable_early_termination=True  # end experiment if the score isn't improving
)

# Submitting an AutoML experiment
returned_job = ml_client_jobs.create_or_update(classification_job)