Record Class IterationCompletedEvent

java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.core.events.IterationCompletedEvent
All Implemented Interfaces:
RunEvent

public record IterationCompletedEvent(String runId, Instant timestamp, int iteration, long evaluations, int populationSize, int eliteSize, double bestFitness, double meanFitness, double stdFitness, Map<String,Double> metrics, ModelDiagnostics diagnostics, LatentTelemetry latentTelemetry, List<AdaptiveActionRecord> adaptiveActions) extends Record implements RunEvent
Event emitted on each iteration with metrics and model diagnostics.
  • Constructor Details

    • IterationCompletedEvent

      public IterationCompletedEvent(String runId, Instant timestamp, int iteration, long evaluations, int populationSize, int eliteSize, double bestFitness, double meanFitness, double stdFitness, Map<String,Double> metrics, ModelDiagnostics diagnostics, LatentTelemetry latentTelemetry, List<AdaptiveActionRecord> adaptiveActions)
      Creates an instance of a IterationCompletedEvent record class.
      Parameters:
      runId - the value for the runId record component
      timestamp - the value for the timestamp record component
      iteration - the value for the iteration record component
      evaluations - the value for the evaluations record component
      populationSize - the value for the populationSize record component
      eliteSize - the value for the eliteSize record component
      bestFitness - the value for the bestFitness record component
      meanFitness - the value for the meanFitness record component
      stdFitness - the value for the stdFitness record component
      metrics - the value for the metrics record component
      diagnostics - the value for the diagnostics record component
      latentTelemetry - the value for the latentTelemetry record component
      adaptiveActions - the value for the adaptiveActions record component
  • Method Details

    • type

      public String type()
      Description copied from interface: RunEvent
      Event type for structured logging.
      Specified by:
      type in interface RunEvent
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • runId

      public String runId()
      Returns the value of the runId record component.
      Specified by:
      runId in interface RunEvent
      Returns:
      the value of the runId record component
    • timestamp

      public Instant timestamp()
      Returns the value of the timestamp record component.
      Specified by:
      timestamp in interface RunEvent
      Returns:
      the value of the timestamp record component
    • iteration

      public int iteration()
      Returns the value of the iteration record component.
      Returns:
      the value of the iteration record component
    • evaluations

      public long evaluations()
      Returns the value of the evaluations record component.
      Returns:
      the value of the evaluations record component
    • populationSize

      public int populationSize()
      Returns the value of the populationSize record component.
      Returns:
      the value of the populationSize record component
    • eliteSize

      public int eliteSize()
      Returns the value of the eliteSize record component.
      Returns:
      the value of the eliteSize record component
    • bestFitness

      public double bestFitness()
      Returns the value of the bestFitness record component.
      Returns:
      the value of the bestFitness record component
    • meanFitness

      public double meanFitness()
      Returns the value of the meanFitness record component.
      Returns:
      the value of the meanFitness record component
    • stdFitness

      public double stdFitness()
      Returns the value of the stdFitness record component.
      Returns:
      the value of the stdFitness record component
    • metrics

      public Map<String,Double> metrics()
      Returns the value of the metrics record component.
      Returns:
      the value of the metrics record component
    • diagnostics

      public ModelDiagnostics diagnostics()
      Returns the value of the diagnostics record component.
      Returns:
      the value of the diagnostics record component
    • latentTelemetry

      public LatentTelemetry latentTelemetry()
      Returns the value of the latentTelemetry record component.
      Returns:
      the value of the latentTelemetry record component
    • adaptiveActions

      public List<AdaptiveActionRecord> adaptiveActions()
      Returns the value of the adaptiveActions record component.
      Returns:
      the value of the adaptiveActions record component