modeva.DataSet.get_protected_data#
- DataSet.get_protected_data(dataset: str = 'main')#
Get the protected data in the format of np.ndarray (raw, as there is no preprocessed version of protected data).
Only active samples are returned. For extra data, no subsampling exists.
- Parameters:
dataset ({"main", "train", "test"}, default="main") – The name of data split. It can also be other manually registered data split, if exists. Use the function get_data_list to check all available data splits.
- Return type:
np.ndarray of the given dataset’s protected features, will be None if not available.