ProgramMetricIssue

Models & Types · AiDotNet.Evolution.Programs.Metrics

One metric the aggregation could not use, together with the reason it was set aside.

For Beginners

If your score comes out as zero and you cannot see why, read this list. It names each measurement that was left out of the calculation and says whether it was a message rather than a number, a yes/no flag, a missing entry, or something the configuration deliberately excluded.

How It Works

Scalarization is where a silent bug hides best. The reference OpenEvolve rule filters out strings, booleans and NaN without recording that it did so, so an evaluator that reports {"accuracy": "0.9"} as text instead of a number scores 0.0 and looks exactly like an evaluator whose program genuinely failed. An issue is the record of one such filtered value: which metric, why, and a short human-readable note.

Issues are informational, not fatal. An aggregation still returns a value when it produces issues; the caller decides whether a run should stop, whether the candidate should be reported as failed, or whether the note is merely worth logging. The description never echoes an unbounded metric value, so an issue is always safe to log.

Constructors

Constructor Summary
ProgramMetricIssue(string metricName, ProgramMetricIssueReason reason, string description) Initializes an issue.

Properties

Property Summary
ProgramMetricIssueReason Reason { get; } Gets why the metric was set aside.
string Description { get; } Gets a short bounded note describing the issue.
string MetricName { get; } Gets the name of the metric the issue concerns.

Methods

Method Summary
string ToString() Returns the metric name and reason.

Fields

Field Summary
int MaxDescriptionLength The longest description carried by an issue, in characters.