├── .pre-commit-config.yaml ├── README.md ├── data ├── age_list.txt ├── family_list.txt ├── gender_list.txt ├── gt_labels │ ├── age_gt.txt │ ├── gender_gt.txt │ ├── profession_gt.txt │ └── readme ├── prof_synonyms.txt ├── profession_list.txt ├── raw │ ├── age.txt.gz │ ├── family.txt │ ├── gender.txt │ ├── postids.txt.gz │ └── professions.txt └── vocab.txt ├── models ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ ├── baseline_cnn.cpython-36.pyc │ ├── cnn_attention.cpython-36.pyc │ ├── cnn_kmax.cpython-36.pyc │ ├── double_attention.cpython-36.pyc │ ├── mlp.cpython-36.pyc │ └── model_base.cpython-36.pyc ├── cnn_attention.py ├── cnn_kmax.py ├── double_attention.py ├── mlp.py └── model_base.py ├── prepare_data ├── categorize_users.py ├── clean_input_msg.py ├── create_input_samples.py └── hadoop │ ├── mapper.py │ ├── readme.md │ ├── reducer.py │ └── run.sh ├── pyproject.toml ├── results └── mlp_helloo.txt ├── run.py └── utils ├── __pycache__ ├── config.cpython-36.pyc ├── init.cpython-36.pyc └── model_statistics.cpython-36.pyc ├── config.py ├── init.py └── model_statistics.py /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/README.md -------------------------------------------------------------------------------- /data/age_list.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/age_list.txt -------------------------------------------------------------------------------- /data/family_list.txt: -------------------------------------------------------------------------------- 1 | y 2 | n -------------------------------------------------------------------------------- /data/gender_list.txt: -------------------------------------------------------------------------------- 1 | f 2 | m -------------------------------------------------------------------------------- /data/gt_labels/age_gt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/gt_labels/age_gt.txt -------------------------------------------------------------------------------- /data/gt_labels/gender_gt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/gt_labels/gender_gt.txt -------------------------------------------------------------------------------- /data/gt_labels/profession_gt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/gt_labels/profession_gt.txt -------------------------------------------------------------------------------- /data/gt_labels/readme: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /data/prof_synonyms.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/prof_synonyms.txt -------------------------------------------------------------------------------- /data/profession_list.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/profession_list.txt -------------------------------------------------------------------------------- /data/raw/age.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/raw/age.txt.gz -------------------------------------------------------------------------------- /data/raw/family.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/raw/family.txt -------------------------------------------------------------------------------- /data/raw/gender.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/raw/gender.txt -------------------------------------------------------------------------------- /data/raw/postids.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/raw/postids.txt.gz -------------------------------------------------------------------------------- /data/raw/professions.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/raw/professions.txt -------------------------------------------------------------------------------- /data/vocab.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/data/vocab.txt -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /models/__pycache__/baseline_cnn.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/__pycache__/baseline_cnn.cpython-36.pyc -------------------------------------------------------------------------------- /models/__pycache__/cnn_attention.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/__pycache__/cnn_attention.cpython-36.pyc -------------------------------------------------------------------------------- /models/__pycache__/cnn_kmax.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/__pycache__/cnn_kmax.cpython-36.pyc -------------------------------------------------------------------------------- /models/__pycache__/double_attention.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/__pycache__/double_attention.cpython-36.pyc -------------------------------------------------------------------------------- /models/__pycache__/mlp.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/__pycache__/mlp.cpython-36.pyc -------------------------------------------------------------------------------- /models/__pycache__/model_base.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/__pycache__/model_base.cpython-36.pyc -------------------------------------------------------------------------------- /models/cnn_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/cnn_attention.py -------------------------------------------------------------------------------- /models/cnn_kmax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/cnn_kmax.py -------------------------------------------------------------------------------- /models/double_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/double_attention.py -------------------------------------------------------------------------------- /models/mlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/mlp.py -------------------------------------------------------------------------------- /models/model_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/models/model_base.py -------------------------------------------------------------------------------- /prepare_data/categorize_users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/prepare_data/categorize_users.py -------------------------------------------------------------------------------- /prepare_data/clean_input_msg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/prepare_data/clean_input_msg.py -------------------------------------------------------------------------------- /prepare_data/create_input_samples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/prepare_data/create_input_samples.py -------------------------------------------------------------------------------- /prepare_data/hadoop/mapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/prepare_data/hadoop/mapper.py -------------------------------------------------------------------------------- /prepare_data/hadoop/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/prepare_data/hadoop/readme.md -------------------------------------------------------------------------------- /prepare_data/hadoop/reducer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/prepare_data/hadoop/reducer.py -------------------------------------------------------------------------------- /prepare_data/hadoop/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/prepare_data/hadoop/run.sh -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.black] 2 | line-length = 150 3 | -------------------------------------------------------------------------------- /results/mlp_helloo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/results/mlp_helloo.txt -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/run.py -------------------------------------------------------------------------------- /utils/__pycache__/config.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/utils/__pycache__/config.cpython-36.pyc -------------------------------------------------------------------------------- /utils/__pycache__/init.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/utils/__pycache__/init.cpython-36.pyc -------------------------------------------------------------------------------- /utils/__pycache__/model_statistics.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/utils/__pycache__/model_statistics.cpython-36.pyc -------------------------------------------------------------------------------- /utils/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/utils/config.py -------------------------------------------------------------------------------- /utils/init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/utils/init.py -------------------------------------------------------------------------------- /utils/model_statistics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anna146/HiddenAttributeModels/HEAD/utils/model_statistics.py --------------------------------------------------------------------------------