aif360.datasets
.LawSchoolGPADataset
- class aif360.datasets.LawSchoolGPADataset(dep_var_name='zfygpa', protected_attribute_names=['race', 'gender'], privileged_classes=[['white'], ['male']], instance_weights_name=None, categorical_features=[], na_values=[], custom_preprocessing=None, metadata=None)[source]
Law School GPA dataset.
See
RegressionDataset
for a description of the arguments.Methods
align_datasets
Align the other dataset features, labels and protected_attributes to this dataset.
convert_to_dataframe
Convert the StructuredDataset to a
pandas.DataFrame
.copy
Convenience method to return a copy of this dataset.
export_dataset
Export the dataset and supporting attributes TODO: The preferred file format is HDF
import_dataset
Import the dataset and supporting attributes TODO: The preferred file format is HDF
split
Split this dataset into multiple partitions.
subset
Subset of dataset based on position :param indexes: iterable which contains row indexes
temporarily_ignore
Temporarily add the fields provided to
ignore_fields
.validate_dataset
Error checking and type validation.
- __init__(dep_var_name='zfygpa', protected_attribute_names=['race', 'gender'], privileged_classes=[['white'], ['male']], instance_weights_name=None, categorical_features=[], na_values=[], custom_preprocessing=None, metadata=None)[source]
See
RegressionDataset
for a description of the arguments.