TextClassificationModelEvaluationResult

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

Bases: oci.ai_language.models.evaluation_result_summary.EvaluationResultSummary

Possible TXTC model error analysis

Methods

__init__(**kwargs) Initializes a new TextClassificationModelEvaluationResult 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

defined_tags Gets the defined_tags of this EvaluationResultSummary.
freeform_tags Gets the freeform_tags of this EvaluationResultSummary.
location [Required] Gets the location of this TextClassificationModelEvaluationResult.
model_type [Required] Gets the model_type of this EvaluationResultSummary.
predicted_labels Gets the predicted_labels of this TextClassificationModelEvaluationResult.
true_labels [Required] Gets the true_labels of this TextClassificationModelEvaluationResult.
__init__(**kwargs)

Initializes a new TextClassificationModelEvaluationResult 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 TextClassificationModelEvaluationResult.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this TextClassificationModelEvaluationResult.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this TextClassificationModelEvaluationResult.
  • location (str) – The value to assign to the location property of this TextClassificationModelEvaluationResult.
  • true_labels (list[str]) – The value to assign to the true_labels property of this TextClassificationModelEvaluationResult.
  • predicted_labels (list[str]) – The value to assign to the predicted_labels property of this TextClassificationModelEvaluationResult.
defined_tags

Gets the defined_tags of this EvaluationResultSummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this EvaluationResultSummary.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this EvaluationResultSummary. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this EvaluationResultSummary.
Return type:dict(str, str)
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.

location

[Required] Gets the location of this TextClassificationModelEvaluationResult. For CSV format location is rowId(1 is header) and for JSONL location is jsonL line sequence(1 is metadata)

Returns:The location of this TextClassificationModelEvaluationResult.
Return type:str
model_type

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

Returns:The model_type of this EvaluationResultSummary.
Return type:str
predicted_labels

Gets the predicted_labels of this TextClassificationModelEvaluationResult. List of predicted labels by custom multi class or multi label TextClassification model

Returns:The predicted_labels of this TextClassificationModelEvaluationResult.
Return type:list[str]
true_labels

[Required] Gets the true_labels of this TextClassificationModelEvaluationResult. List of true(actual) labels in test data for multi class or multi label TextClassification

Returns:The true_labels of this TextClassificationModelEvaluationResult.
Return type:list[str]