categorical.py 615 B

123456789101112131415161718192021
  1. # [is_quasi_identifier, is_categorical]
  2. ADULT_ATTRIBUTES = {'sex': [True, True],
  3. 'age': [True, False],
  4. 'race': [True, True],
  5. 'marital-status': [True, True],
  6. 'education': [True, True],
  7. 'native-country': [True, True],
  8. 'workclass': [True, True],
  9. 'occupation': [True, True],
  10. 'salary-class': [False],
  11. 'ID': [False]
  12. }
  13. DATASET_ATTRIBUTES_DICT = {
  14. 'adult': ADULT_ATTRIBUTES,
  15. }
  16. QI_INDEX_DICT = {
  17. 'adult': [1, 2, 3, 4, 5, 6, 7, 8],
  18. }