MachineLearning to 2D Ising model
Current version commited generates Ising configurations in a square lattice of size to be chosen. The generated files are written into sub-directories named accordingly. The functions for reading the data is also written and the way to use the function is demonstrated.
Currently, it stores the configuration as a .png file and a .pkl file in which there is a dictionary. The dictionary has the key-value pairs of configuration, mean magnetization and mean energy.
Make sure we can get more sweeps of a data, without having to run the whole simulation. Read data to return two numpy arrays: configurations and labels; so that we are ready to start with machine learning.