PoissonDevianceMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Regression

Computes Poisson Deviance for count data regression.

Implements: IRegressionMetric<T>

For Beginners

Poisson Deviance is designed for count data:

  • Perfect for predicting counts (visitors, purchases, events)
  • Handles the discrete nature of count data
  • Penalizes relative errors rather than absolute errors
  • Special case of Tweedie deviance with power = 1

How It Works

Poisson Deviance = 2 × Σ(y × log(y/ŷ) - (y - ŷ)) for y > 0

When to use:

  • Predicting number of events (clicks, purchases, calls)
  • When predictions should always be positive
  • When variance increases with the mean

Constructors

Constructor Summary
PoissonDevianceMetric()

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)