This project contains the code to run the experiments presented in the corresponding paper submitted in the journal Computer Methods and Programs in Biomedicine. All resources, except prescriptions and user profiles that are already included, must be downloaded or generated via commands.
To properly run the experiments you should:
- download this repository
git clone https://github.com/pikalab-unibo/mccao-cmpb-experiments-2022.git
- configure a virgin python environment
python -m venv env_name
- enter into the new environment
. env_name/bin/activate
- install dependencies
pip install requirements.txt
Run the following commands:
- Download datasets:
python -m setup download_datasets
- Generate user's preferences:
python -m setup generate_users_preferences
- Generate user's scores:
python -m setup generate_users_scores
- Generate dataset for training:
python -m setup generate_dataset
- Build and train the ML model:
python -m setup build_and_train_nn
- Extract logic rules:
python -m setup extract_rules
- Generate common knowledge base:
generate_common_kb
- Propose recipes:
python -m setup propose_recipes