--------
Overview
--------

This folder contains the code used to generate results in J on MNIST10 in the paper.

--------------------------------------------
Instructions to Reproduce Results on MNIST10
--------------------------------------------

Set different N, M, R, P, \tau(fixed trajectory) as needed.

* MNIST10 data
    Run: to get the MNIST10 data
        python MNIST_data.py

* SMC_parallel
    Run: to generate raw data  
        python psmc_hmc_SimpleNN_singlenode.py seed numwork  
    Set seed=1,2,...,RP manually. The numwork parameter corresponds to the number of CPU cores allocated per node on HPC.  
    Run: to compute full metrics  
        MNIST_results_PSMC.m

* HMC_parallel
    Run: to generate raw data  
        python phmc_SimpleNN_singlenode.py seed
    Set seed=1,2,...,RP manually. 
    Run: to compute full metrics  
        MNIST_results_PHMC.m
