Package com.oracle.bmc.ailanguage.model
Class ClassMetrics.Builder
- java.lang.Object
- 
- com.oracle.bmc.ailanguage.model.ClassMetrics.Builder
 
- 
- Enclosing class:
- ClassMetrics
 
 public static class ClassMetrics.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassMetricsbuild()ClassMetrics.Buildercopy(ClassMetrics model)ClassMetrics.Builderf1(Float f1)F1-score, is a measure of a model\u2019s accuracy on a datasetClassMetrics.Builderlabel(String label)Text classification labelClassMetrics.Builderprecision(Float precision)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)ClassMetrics.Builderrecall(Float recall)Measures the model’s ability to predict actual positive classes.ClassMetrics.Buildersupport(Float support)number of samples in the test set
 
- 
- 
- 
Method Detail- 
labelpublic ClassMetrics.Builder label(String label) Text classification label- Parameters:
- label- the value to set
- Returns:
- this builder
 
 - 
f1public ClassMetrics.Builder f1(Float f1) F1-score, is a measure of a model\u2019s accuracy on a dataset- Parameters:
- f1- the value to set
- Returns:
- this builder
 
 - 
precisionpublic ClassMetrics.Builder precision(Float precision) 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)- Parameters:
- precision- the value to set
- Returns:
- this builder
 
 - 
recallpublic ClassMetrics.Builder recall(Float recall) 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. - Parameters:
- recall- the value to set
- Returns:
- this builder
 
 - 
supportpublic ClassMetrics.Builder support(Float support) number of samples in the test set- Parameters:
- support- the value to set
- Returns:
- this builder
 
 - 
buildpublic ClassMetrics build() 
 - 
copypublic ClassMetrics.Builder copy(ClassMetrics model) 
 
- 
 
-