Exact Training of Restricted Boltzmann Machines on Intrinsically Low Dimensional Data.