Class ObjectiveEvaluation<TMetric>
- Namespace
- SignalSharp.Optimization
- Assembly
- SignalSharp.dll
Represents the output of evaluating the objective function at a given set of trial parameters.
public record ObjectiveEvaluation<TMetric> : IEquatable<ObjectiveEvaluation<TMetric>>
Type Parameters
TMetricThe type of the objective metric (e.g., SSE).
- Inheritance
-
ObjectiveEvaluation<TMetric>
- Implements
-
IEquatable<ObjectiveEvaluation<TMetric>>
- Inherited Members
Constructors
ObjectiveEvaluation(TMetric, IReadOnlyDictionary<string, double>?)
Represents the output of evaluating the objective function at a given set of trial parameters.
public ObjectiveEvaluation(TMetric MetricValue, IReadOnlyDictionary<string, double>? Gradient = null)
Parameters
MetricValueTMetricThe calculated value of the objective metric.
GradientIReadOnlyDictionary<string, double>An optional dictionary mapping parameter names to their corresponding gradient components with respect to the objective metric. Null if gradients are not provided or not applicable.
Properties
Gradient
An optional dictionary mapping parameter names to their corresponding gradient components with respect to the objective metric. Null if gradients are not provided or not applicable.
public IReadOnlyDictionary<string, double>? Gradient { get; init; }
Property Value
MetricValue
The calculated value of the objective metric.
public TMetric MetricValue { get; init; }
Property Value
- TMetric