fairlens.calculate_score#

calculate_score(df_dist)[source]#

Calculate the weighted mean pairwise statistical distance.

Parameters

df_dist (pd.DataFrame) – A dataframe of statistical distances produced by or fairlens.FairnessScorer.distribution_score.

Returns

The weighted mean statistical distance.

Return type

float