TextClassificationEvaluationResults

class oci.ai_language.models.TextClassificationEvaluationResults(**kwargs)

Bases: EvaluationResults

Text Classification model testing and evaluation results

Methods:

__init__(**kwargs)

Initializes a new TextClassificationEvaluationResults object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

Attributes:

class_metrics

Gets the class_metrics of this TextClassificationEvaluationResults.

confusion_matrix

Gets the confusion_matrix of this TextClassificationEvaluationResults.

labels

Gets the labels of this TextClassificationEvaluationResults.

metrics

Gets the metrics of this TextClassificationEvaluationResults.

model_type

[Required] Gets the model_type of this EvaluationResults.

__init__(**kwargs)

Initializes a new TextClassificationEvaluationResults object with values from keyword arguments. The default value of the model_type attribute of this class is TEXT_CLASSIFICATION and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • model_type (str) – The value to assign to the model_type property of this TextClassificationEvaluationResults.

  • metrics (oci.ai_language.models.TextClassificationModelMetrics) – The value to assign to the metrics property of this TextClassificationEvaluationResults.

  • class_metrics (list[oci.ai_language.models.ClassMetrics]) – The value to assign to the class_metrics property of this TextClassificationEvaluationResults.

  • confusion_matrix (dict(str, ConfusionMatrixDetails)) – The value to assign to the confusion_matrix property of this TextClassificationEvaluationResults.

  • labels (list[str]) – The value to assign to the labels property of this TextClassificationEvaluationResults.

property class_metrics

Gets the class_metrics of this TextClassificationEvaluationResults. List of text classification metrics

Returns

The class_metrics of this TextClassificationEvaluationResults.

Return type

list[oci.ai_language.models.ClassMetrics]

property confusion_matrix

Gets the confusion_matrix of this TextClassificationEvaluationResults. class level confusion matrix

Returns

The confusion_matrix of this TextClassificationEvaluationResults.

Return type

dict(str, ConfusionMatrixDetails)

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property labels

Gets the labels of this TextClassificationEvaluationResults. labels

Returns

The labels of this TextClassificationEvaluationResults.

Return type

list[str]

property metrics

Gets the metrics of this TextClassificationEvaluationResults.

Returns

The metrics of this TextClassificationEvaluationResults.

Return type

oci.ai_language.models.TextClassificationModelMetrics

property model_type

[Required] Gets the model_type of this EvaluationResults. Model type

Returns

The model_type of this EvaluationResults.

Return type

str