Skip to main content

trained_model

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

Overview

Nametrained_model
TypeResource
Idazure.ai_text_analytics_authoring.trained_model

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
languagestringRepresents the document language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. Required.
locationstringRepresents the document path. Required.
projectKindstringRepresents the project kind. Required. Known values are: "CustomSingleLabelClassification", "CustomMultiLabelClassification", "CustomEntityRecognition", "CustomAbstractiveSummarization", "CustomHealthcare", and "CustomTextSentiment".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_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.
evaluate_modelexectrained_model_label, project_name, endpointTriggers evaluation operation on a trained model.
load_snapshotexectrained_model_label, project_name, endpointLong-running operation.

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: )
project_namestring
stringIndexTypestringSpecifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets _. "Utf16CodeUnit" 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 detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process.

SELECT
language,
location,
projectKind
FROM azure.ai_text_analytics_authoring.trained_model
WHERE trained_model_label = '{{ trained_model_label }}' -- required
AND project_name = '{{ project_name }}' -- required
AND stringIndexType = '{{ stringIndexType }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND maxpagesize = '{{ maxpagesize }}'
;

DELETE examples

Deletes an existing trained model.

DELETE FROM azure.ai_text_analytics_authoring.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_text_analytics_authoring.trained_model.get_model_evaluation_summary 
@trained_model_label='{{ trained_model_label }}' --required,
@project_name='{{ project_name }}' --required,
@endpoint='{{ endpoint }}' --required
;