ExplainedVarianceMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Regression
Computes Explained Variance Score: proportion of variance in target explained by predictions.
Implements: IRegressionMetric<T>
For Beginners
Similar to R² but doesn’t penalize bias. EV = 1 means perfect variance explanation, EV = 0 means no better than mean prediction. Can differ from R² if predictions are biased.
How It Works
EV = 1 - Var(y - ŷ) / Var(y)
Constructors
| Constructor | Summary |
|---|---|
ExplainedVarianceMetric() |
Properties
| Property | Summary |
|---|---|
MetricDirection Direction { get; } |
|
T MaxValue { get; } |
|
T MinValue { get; } |
|
bool RequiresProbabilities { get; } |
|
bool SupportsMultiClass { get; } |
|
string Category { get; } |
|
string Description { get; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
MetricWithCI<T> ComputeWithCI(ReadOnlySpan<T> predictions, ReadOnlySpan<T> actuals, ConfidenceIntervalMethod ciMethod, double confidenceLevel, int bootstrapSamples, int? randomSeed) |
|
T Compute(ReadOnlySpan<T> predictions, ReadOnlySpan<T> actuals) |