ClassMetrics¶
- class oci.ai_language.models.ClassMetrics(**kwargs)¶
Bases:
objectclass level Text Classification model metrics
Methods:
__init__(**kwargs)Initializes a new ClassMetrics object with values from keyword arguments.
Attributes:
[Required] Gets the f1 of this ClassMetrics.
[Required] Gets the label of this ClassMetrics.
[Required] Gets the precision of this ClassMetrics.
[Required] Gets the recall of this ClassMetrics.
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.
- property 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
- property label¶
[Required] Gets the label of this ClassMetrics. Text classification label
- Returns
The label of this ClassMetrics.
- Return type
str
- property 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
- property 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
- property support¶
Gets the support of this ClassMetrics. number of samples in the test set
- Returns
The support of this ClassMetrics.
- Return type
float