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 Summary
ConstructorsConstructorDescriptionIterationCompletedEvent(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 aIterationCompletedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadaptiveActionsrecord component.doubleReturns the value of thebestFitnessrecord component.Returns the value of thediagnosticsrecord component.intReturns the value of theeliteSizerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevaluationsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationrecord component.Returns the value of thelatentTelemetryrecord component.doubleReturns the value of themeanFitnessrecord component.metrics()Returns the value of themetricsrecord component.intReturns the value of thepopulationSizerecord component.runId()Returns the value of therunIdrecord component.doubleReturns the value of thestdFitnessrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Event type for structured logging.
-
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 aIterationCompletedEventrecord class.- Parameters:
runId- the value for therunIdrecord componenttimestamp- the value for thetimestamprecord componentiteration- the value for theiterationrecord componentevaluations- the value for theevaluationsrecord componentpopulationSize- the value for thepopulationSizerecord componenteliteSize- the value for theeliteSizerecord componentbestFitness- the value for thebestFitnessrecord componentmeanFitness- the value for themeanFitnessrecord componentstdFitness- the value for thestdFitnessrecord componentmetrics- the value for themetricsrecord componentdiagnostics- the value for thediagnosticsrecord componentlatentTelemetry- the value for thelatentTelemetryrecord componentadaptiveActions- the value for theadaptiveActionsrecord component
-
-
Method Details
-
type
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
runId
-
timestamp
-
iteration
public int iteration()Returns the value of theiterationrecord component.- Returns:
- the value of the
iterationrecord component
-
evaluations
public long evaluations()Returns the value of theevaluationsrecord component.- Returns:
- the value of the
evaluationsrecord component
-
populationSize
public int populationSize()Returns the value of thepopulationSizerecord component.- Returns:
- the value of the
populationSizerecord component
-
eliteSize
public int eliteSize()Returns the value of theeliteSizerecord component.- Returns:
- the value of the
eliteSizerecord component
-
bestFitness
public double bestFitness()Returns the value of thebestFitnessrecord component.- Returns:
- the value of the
bestFitnessrecord component
-
meanFitness
public double meanFitness()Returns the value of themeanFitnessrecord component.- Returns:
- the value of the
meanFitnessrecord component
-
stdFitness
public double stdFitness()Returns the value of thestdFitnessrecord component.- Returns:
- the value of the
stdFitnessrecord component
-
metrics
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-
latentTelemetry
Returns the value of thelatentTelemetryrecord component.- Returns:
- the value of the
latentTelemetryrecord component
-
adaptiveActions
Returns the value of theadaptiveActionsrecord component.- Returns:
- the value of the
adaptiveActionsrecord component
-