TextClassificationModelEvaluationResult¶
- class oci.ai_language.models.TextClassificationModelEvaluationResult(**kwargs)¶
Bases:
EvaluationResultSummaryPossible 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:
Gets the defined_tags of this EvaluationResultSummary.
Gets the freeform_tags of this EvaluationResultSummary.
[Required] Gets the location of this TextClassificationModelEvaluationResult.
[Required] Gets the model_type of this EvaluationResultSummary.
Gets the predicted_labels of this TextClassificationModelEvaluationResult.
[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_typeattribute of this class isTEXT_CLASSIFICATIONand 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.
- property 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))
- property 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.
- property 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
- property model_type¶
[Required] Gets the model_type of this EvaluationResultSummary. Model type
- Returns
The model_type of this EvaluationResultSummary.
- Return type
str
- property 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]
- property 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]