aif360.sklearn.datasets.fetch_lawschool_gpa

aif360.sklearn.datasets.fetch_lawschool_gpa(subset='all', usecols=[], dropcols=[], numeric_only=False, dropna=False)[source]

Load the Law School GPA dataset

Note

By default, the data is downloaded from tempeh. See https://github.com/microsoft/tempeh for details.

Parameters:
  • subset ({'train', 'test', or 'all'}, optional) – Select the dataset to load: ‘train’ for the training set, ‘test’ for the test set, ‘all’ for both.
  • usecols (single label or list-like, optional) – Feature column(s) to keep. All others are dropped.
  • dropcols (single label or list-like, optional) – Feature column(s) to drop.
  • numeric_only (bool) – Drop all non-numeric feature columns.
  • dropna (bool) – Drop rows with NAs.
Returns:

namedtuple – Tuple containing X, y, and sample_weights for the Law School GPA dataset accessible by index or name.