ClassMetrics¶
-
class
oci.ai_language.models.
ClassMetrics
(**kwargs)¶ Bases:
object
class level Text Classification model metrics
Methods
__init__
(**kwargs)Initializes a new ClassMetrics object with values from keyword arguments. Attributes
f1
[Required] Gets the f1 of this ClassMetrics. label
[Required] Gets the label of this ClassMetrics. precision
[Required] Gets the precision of this ClassMetrics. recall
[Required] Gets the recall of this ClassMetrics. support
Gets the support of this ClassMetrics. -
__init__
(**kwargs)¶ Initializes a new ClassMetrics object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - label (str) – The value to assign to the label property of this ClassMetrics.
- f1 (float) – The value to assign to the f1 property of this ClassMetrics.
- precision (float) – The value to assign to the precision property of this ClassMetrics.
- recall (float) – The value to assign to the recall property of this ClassMetrics.
- support (float) – The value to assign to the support property of this ClassMetrics.
-
f1
¶ [Required] Gets the f1 of this ClassMetrics. F1-score, is a measure of a model’s accuracy on a dataset
Returns: The f1 of this ClassMetrics. Return type: float
-
label
¶ [Required] Gets the label of this ClassMetrics. Text classification label
Returns: The label of this ClassMetrics. Return type: str
-
precision
¶ [Required] Gets the precision of this ClassMetrics. Precision refers to the number of true positives divided by the total number of positive predictions (i.e., the number of true positives plus the number of false positives)
Returns: The precision of this ClassMetrics. Return type: float
-
recall
¶ [Required] Gets the recall of this ClassMetrics. Measures the model’s ability to predict actual positive classes. It is the ratio between the predicted true positives and what was actually tagged. The recall metric reveals how many of the predicted classes are correct.
Returns: The recall of this ClassMetrics. Return type: float
-
support
¶ Gets the support of this ClassMetrics. number of samples in the test set
Returns: The support of this ClassMetrics. Return type: float
-