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

    Constructors
    Constructor
    Description
    Resultado(int anoTreino, int anoTeste, Metricas.Classificacao metricas, double baselineAcuracia, double baselineF1Macro, int[] distribuicaoTeste, double[] importancia)
    Creates an instance of a Resultado record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the anoTeste record component.
    int
    Returns the value of the anoTreino record component.
    double
    Returns the value of the baselineAcuracia record component.
    double
    Returns the value of the baselineF1Macro record component.
    int[]
    Returns the value of the distribuicaoTeste record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double[]
    Returns the value of the importancia record component.
    Returns the value of the metricas record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Resultado

      public Resultado(int anoTreino, int anoTeste, Metricas.Classificacao metricas, double baselineAcuracia, double baselineF1Macro, int[] distribuicaoTeste, double[] importancia)
      Creates an instance of a Resultado record class.
      Parameters:
      anoTreino - the value for the anoTreino record component
      anoTeste - the value for the anoTeste record component
      metricas - the value for the metricas record component
      baselineAcuracia - the value for the baselineAcuracia record component
      baselineF1Macro - the value for the baselineF1Macro record component
      distribuicaoTeste - the value for the distribuicaoTeste record component
      importancia - the value for the importancia record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • anoTreino

      public int anoTreino()
      Returns the value of the anoTreino record component.
      Returns:
      the value of the anoTreino record component
    • anoTeste

      public int anoTeste()
      Returns the value of the anoTeste record component.
      Returns:
      the value of the anoTeste record component
    • metricas

      public Metricas.Classificacao metricas()
      Returns the value of the metricas record component.
      Returns:
      the value of the metricas record component
    • baselineAcuracia

      public double baselineAcuracia()
      Returns the value of the baselineAcuracia record component.
      Returns:
      the value of the baselineAcuracia record component
    • baselineF1Macro

      public double baselineF1Macro()
      Returns the value of the baselineF1Macro record component.
      Returns:
      the value of the baselineF1Macro record component
    • distribuicaoTeste

      public int[] distribuicaoTeste()
      Returns the value of the distribuicaoTeste record component.
      Returns:
      the value of the distribuicaoTeste record component
    • importancia

      public double[] importancia()
      Returns the value of the importancia record component.
      Returns:
      the value of the importancia record component