Package br.unip.aps.ml
Record Class Metricas.Classificacao
java.lang.Object
java.lang.Record
br.unip.aps.ml.Metricas.Classificacao
- Enclosing class:
Metricas
public static record Metricas.Classificacao(double acuracia, double f1Macro, double[] precisao, double[] revocacao, double[] f1, int[][] matriz)
extends Record
Metricas de classificacao multiclasse.
-
Constructor Summary
ConstructorsConstructorDescriptionClassificacao(double acuracia, double f1Macro, double[] precisao, double[] revocacao, double[] f1, int[][] matriz) Creates an instance of aClassificacaorecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleacuracia()Returns the value of theacuraciarecord component.final booleanIndicates whether some other object is "equal to" this one.double[]f1()Returns the value of thef1record component.doublef1Macro()Returns the value of thef1Macrorecord component.final inthashCode()Returns a hash code value for this object.int[][]matriz()Returns the value of thematrizrecord component.double[]precisao()Returns the value of theprecisaorecord component.double[]Returns the value of therevocacaorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Classificacao
public Classificacao(double acuracia, double f1Macro, double[] precisao, double[] revocacao, double[] f1, int[][] matriz) Creates an instance of aClassificacaorecord class.- Parameters:
acuracia- the value for theacuraciarecord componentf1Macro- the value for thef1Macrorecord componentprecisao- the value for theprecisaorecord componentrevocacao- the value for therevocacaorecord componentf1- the value for thef1record componentmatriz- the value for thematrizrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
acuracia
public double acuracia()Returns the value of theacuraciarecord component.- Returns:
- the value of the
acuraciarecord component
-
f1Macro
public double f1Macro()Returns the value of thef1Macrorecord component.- Returns:
- the value of the
f1Macrorecord component
-
precisao
public double[] precisao()Returns the value of theprecisaorecord component.- Returns:
- the value of the
precisaorecord component
-
revocacao
public double[] revocacao()Returns the value of therevocacaorecord component.- Returns:
- the value of the
revocacaorecord component
-
f1
public double[] f1()Returns the value of thef1record component.- Returns:
- the value of the
f1record component
-
matriz
public int[][] matriz()Returns the value of thematrizrecord component.- Returns:
- the value of the
matrizrecord component
-