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
RegressionDatasetfor a description of the arguments.Methods
align_datasetsAlign the other dataset features, labels and protected_attributes to this dataset.
convert_to_dataframeConvert the StructuredDataset to a
pandas.DataFrame.copyConvenience method to return a copy of this dataset.
export_datasetExport the dataset and supporting attributes TODO: The preferred file format is HDF
import_datasetImport the dataset and supporting attributes TODO: The preferred file format is HDF
splitSplit this dataset into multiple partitions.
subsetSubset of dataset based on position :param indexes: iterable which contains row indexes
temporarily_ignoreTemporarily add the fields provided to
ignore_fields.validate_datasetError 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
RegressionDatasetfor a description of the arguments.