# Bayesian personalized recommendation (BPR)

##Requirements
python=3.7
run pip install -r requirements.txt

## Usage
1. Train MLP classifiers

```sh
python train_model.py --clf mlp --data synthesis german bank student --num-proc 16
```

2. Run experiments

Graph-based recommendation:

```sh                                             
python run_expt.py -e 1 --datasets synthesis german bank student -clf mlp --method bayesian_reup_graph -uc 
```

Gradient-based recommendation:

```sh                                             
python run_expt.py -e 1 --datasets synthesis german bank student -clf mlp --methods bayesian_reup -uc
```

3. for visualization go to /results/run_0/expt_1

mean-rank:
```sh                                             
python plot_mean_rank.py
```

risk-measurement:
```sh                                             
python plot_risk_measurement.py
```

