{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n# Measuring Fairness of a Data Set\n\n\nThis example illustrates how to find unfair rows in a data set using the\n:func:`fatf.fairness.data.measures.systemic_bias` function and how to check\nwhether each class is distributed equally between values of a selected feature,\ni.e. measuring the Sample Size Disparity (with :func:`fatf.utils.data.tools.group_by_column` function).\n\n
Please note that this example uses a data set that is represented as a\n structured numpy array, which supports mixed data types among columns with\n the features (columns) being index by the feature name rather than by\n consecutive integers.