Skip to content

Instantly share code, notes, and snippets.

View nbusich's full-sized avatar

Nick nbusich

  • Boston, MA
View GitHub Profile
@nbusich
nbusich / README.md
Created May 20, 2026 01:14
Log Input drift detector using KL divergence

Main idea: Drift Detection using KL Divergence

If we want to measure the drift of each feature, we can convert each feature to a distribution using:
  - KDE for continuous features
  - Binning for Categorical features

With distributions for each train column and uploaded log column, we can compare column-to-column with KL divergence.
  - KL divergence measures how different two distributions are
  - Higher KL divergence = more drift
 - Use this metric to classify drift