This code contains implementaion for MaM-MLE and MaM-DM.

--------------------

## Installation
```
pip install -r requirements.txt
```

## MaM for maximum likelihood estimation

First step: train the AO-ARMs with the code in ARM folder, then copy the path of the model to loadpath_pretrain in config file.

Second step: train the marginals.

```
python text_main.py load=True

python image_main.py load=True
```

## MaM for distribution matching

```
python ising_main.py

python mol_dm_main.py
```


