liveBook · Manning

Tweedie loss function

As explained in Machine Learning System Design

A loss function derived from a Tweedie probability model for targets with distributional characteristics such as mass at zero and nonnegative continuous values.

Tweedie loss is a candidate for count-data problems where targets combine many zeros with otherwise continuous, nonnegative values. It offers a distribution-based alternative to training separate quantile models when the predictive distribution itself matters. section 5.3.1

Its appeal comes from covering several target behaviors:

  • Includes continuous distributions such as normal, gamma, and inverse Gaussian. section 5.3.1
  • Includes discrete scaled Poisson and compound Poisson–gamma distributions. section 5.3.1
  • Models positive mass at zero with continuous values elsewhere, matching the stated count-data pattern. section 5.3.1

Retail demand experiment

A retail forecasting team can review Tweedie loss as a second experiment beside six quantile-loss models, comparing its suitability for count data against quantile-specific guarantees. section 5.3.1

How Machine Learning System Design covers it

How deep it goes
Defines the distribution family and its zero-mass behavior, but does not derive the loss mathematically.
Examples
Uses retail count data containing zeros and otherwise continuous values as the motivating application.
What you can do after
Evaluate Tweedie as a candidate loss for count data with zeros and continuous positive values.
How it connects
Connects quantile loss, predictive distributions, count data, and probability distributions.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.