Variational Autoregressive Networks applied to Error Correcting Codes Code adapted from the https://github.com/wdphy16/stat-mech-van