Package br.unip.aps.ml
Record Class ClassificadorNivel.Resultado
java.lang.Object
java.lang.Record
br.unip.aps.ml.ClassificadorNivel.Resultado
- Enclosing class:
ClassificadorNivel
public static record ClassificadorNivel.Resultado(int anoTreino, int anoTeste, Metricas.Classificacao metricas, double baselineAcuracia, double baselineF1Macro, int[] distribuicaoTeste, double[] importancia)
extends Record
Resultado da classificacao.
-
Constructor Summary
ConstructorsConstructorDescriptionResultado(int anoTreino, int anoTeste, Metricas.Classificacao metricas, double baselineAcuracia, double baselineF1Macro, int[] distribuicaoTeste, double[] importancia) Creates an instance of aResultadorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintanoTeste()Returns the value of theanoTesterecord component.intReturns the value of theanoTreinorecord component.doubleReturns the value of thebaselineAcuraciarecord component.doubleReturns the value of thebaselineF1Macrorecord component.int[]Returns the value of thedistribuicaoTesterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]Returns the value of theimportanciarecord component.metricas()Returns the value of themetricasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Resultado
public Resultado(int anoTreino, int anoTeste, Metricas.Classificacao metricas, double baselineAcuracia, double baselineF1Macro, int[] distribuicaoTeste, double[] importancia) Creates an instance of aResultadorecord class.- Parameters:
anoTreino- the value for theanoTreinorecord componentanoTeste- the value for theanoTesterecord componentmetricas- the value for themetricasrecord componentbaselineAcuracia- the value for thebaselineAcuraciarecord componentbaselineF1Macro- the value for thebaselineF1Macrorecord componentdistribuicaoTeste- the value for thedistribuicaoTesterecord componentimportancia- the value for theimportanciarecord 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 '=='. -
anoTreino
public int anoTreino()Returns the value of theanoTreinorecord component.- Returns:
- the value of the
anoTreinorecord component
-
anoTeste
public int anoTeste()Returns the value of theanoTesterecord component.- Returns:
- the value of the
anoTesterecord component
-
metricas
Returns the value of themetricasrecord component.- Returns:
- the value of the
metricasrecord component
-
baselineAcuracia
public double baselineAcuracia()Returns the value of thebaselineAcuraciarecord component.- Returns:
- the value of the
baselineAcuraciarecord component
-
baselineF1Macro
public double baselineF1Macro()Returns the value of thebaselineF1Macrorecord component.- Returns:
- the value of the
baselineF1Macrorecord component
-
distribuicaoTeste
public int[] distribuicaoTeste()Returns the value of thedistribuicaoTesterecord component.- Returns:
- the value of the
distribuicaoTesterecord component
-
importancia
public double[] importancia()Returns the value of theimportanciarecord component.- Returns:
- the value of the
importanciarecord component
-