Skip to main content

trained_model

Creates, updates, deletes, gets or lists a trained_model resource.

Overview​

Nametrained_model
TypeResource
Idazure.ai_language.trained_model

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
createdDateTimestring (date-time)The creation date time of the job. Required.
errorsarrayThe errors encountered while executing the job.
expirationDateTimestring (date-time)The expiration date time of the job.
jobIdstringThe job ID. Required.
lastUpdatedDateTimestring (date-time)The last date time the job was updated. Required.
resultobjectRepresents evaluation task detailed result. Required.
statusstringThe job status. Required. Known values are: "notStarted", "running", "succeeded", "failed", "cancelled", "cancelling", and "partiallyCompleted". (notStarted, running, succeeded, failed, cancelled, cancelling, partiallyCompleted)
warningsarrayThe warnings that were encountered while executing the job.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_evaluation_statusselecttrained_model_label, job_id, project_name, endpointGets the status for an evaluation job.
get_model_evaluation_resultsselecttrained_model_label, project_name, stringIndexType, endpointtop, skip, maxpagesizeGets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process.
get_trained_modelselecttrained_model_label, project_name, endpointGets the details of a trained model.
delete_trained_modeldeletetrained_model_label, project_name, endpointDeletes an existing trained model.
get_model_evaluation_summaryexectrained_model_label, project_name, endpointGets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc.
get_load_snapshot_statusexectrained_model_label, job_id, project_name, endpointGets the status for loading a snapshot.
evaluate_modelexectrained_model_label, project_name, endpointTriggers evaluation operation on a trained model.
load_snapshotexectrained_model_label, project_name, endpointRestores the snapshot of this trained model to be the current working directory of the project.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client Endpoint parameter. (default: )
job_idstringThe job ID. Required.
project_namestring
stringIndexTypestringSpecifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets _. Known values are: "Utf16CodeUnit", "Utf8CodeUnit", and "Utf32CodeUnit". Required.
trained_model_labelstringThe trained model label. Required.
maxpagesizeinteger
skipintegerThe number of result items to skip. Default value is None.
topintegerThe number of result items to return. Default value is None.

SELECT examples​

Gets the status for an evaluation job.

SELECT
createdDateTime,
errors,
expirationDateTime,
jobId,
lastUpdatedDateTime,
result,
status,
warnings
FROM azure.ai_language.trained_model
WHERE trained_model_label = '{{ trained_model_label }}' -- required
AND job_id = '{{ job_id }}' -- required
AND project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

DELETE examples​

Deletes an existing trained model.

DELETE FROM azure.ai_language.trained_model
WHERE trained_model_label = '{{ trained_model_label }}' --required
AND project_name = '{{ project_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods​

Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc.

EXEC azure.ai_language.trained_model.get_model_evaluation_summary
@trained_model_label='{{ trained_model_label }}' --required,
@project_name='{{ project_name }}' --required,
@endpoint='{{ endpoint }}' --required
;