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

    Constructors
    Constructor
    Description
    Classificacao(double acuracia, double f1Macro, double[] precisao, double[] revocacao, double[] f1, int[][] matriz)
    Creates an instance of a Classificacao record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the acuracia record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    double[]
    f1()
    Returns the value of the f1 record component.
    double
    Returns the value of the f1Macro record component.
    final int
    Returns a hash code value for this object.
    int[][]
    Returns the value of the matriz record component.
    double[]
    Returns the value of the precisao record component.
    double[]
    Returns the value of the revocacao 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

    • Classificacao

      public Classificacao(double acuracia, double f1Macro, double[] precisao, double[] revocacao, double[] f1, int[][] matriz)
      Creates an instance of a Classificacao record class.
      Parameters:
      acuracia - the value for the acuracia record component
      f1Macro - the value for the f1Macro record component
      precisao - the value for the precisao record component
      revocacao - the value for the revocacao record component
      f1 - the value for the f1 record component
      matriz - the value for the matriz 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.
    • acuracia

      public double acuracia()
      Returns the value of the acuracia record component.
      Returns:
      the value of the acuracia record component
    • f1Macro

      public double f1Macro()
      Returns the value of the f1Macro record component.
      Returns:
      the value of the f1Macro record component
    • precisao

      public double[] precisao()
      Returns the value of the precisao record component.
      Returns:
      the value of the precisao record component
    • revocacao

      public double[] revocacao()
      Returns the value of the revocacao record component.
      Returns:
      the value of the revocacao record component
    • f1

      public double[] f1()
      Returns the value of the f1 record component.
      Returns:
      the value of the f1 record component
    • matriz

      public int[][] matriz()
      Returns the value of the matriz record component.
      Returns:
      the value of the matriz record component