LightPERMANOVA

A lightweight implementation of PERMANOVA based on Euclidean distance from centroid.

Overview

One known problem of machine learning models in production that affects their predictive ability is covariate shift. It is defined as a change in the distribution of one or more independent variables used to train the model.

ANOVA is often adopted to assess if two samples are from the same population by comparing the variance of their means (H0: all μ\mu’s are equal; H1: at least one pair of μ\mu’s are not equal). This test relies, however, on the normality assumption of the samples, which makes it a non-viable solution to effectively monitor batches of data.

PERMANOVA is a multivariate version of ANOVA based on the pseudo-F statistic, which makes use of permutations, allowing for a non-parametric estimation.

In the case of covariates shift monitoring, the test compares the original sample s0s_0 used at time t0t_0 to train the model with a new, unseen sample s1s_1 on which the model made predictions at time t1t_1.

Read the docs here.

This project is part of "Root.".

Last updated