Giter Club home page Giter Club logo

potts2d_ml's Introduction

############# q-states Potts model via monte-carlo simulation #############

(A) Components:
1. 00sampling.ipynb: contain the core codes to run simulation and generate data. Includes data visualization for run data as well.


2. potts.py: library for Potts_model2D class. Outputs:
            a) data[date][q-value]/train folder
            b) run_data.txt that contains averaged thermodynamic quantities at temperatures
            c) train_data.npz that contains the file names in train folder with labels
               * core code from 3DIsing_v1.1/mc_class.py. Metropolis MC code modified to suite q-state operations.

3. run.py: an AIO CLI code for train/test data generation. Outputs:
            a) data[date][q-value]/test folder
            b) run_gen_data.txt that contains averaged thermodynamic quantities at temperatures
            c) test_data.npz that contains the file names in test folder with labels
               * core code from core code from 3DIsing_v1.1/RUN.py. Modified to print/store q-value.

4. 01visualize.ipynb: run through samples to visualize spin configurations.

5. 02train.ipynb

6. 03predict.ipynb



(C) Known Issues
1. Forgot to normalize the values in the spin configuration to (0,1) for train/test during training / validating. But still gives reasonable result.
   solved. But prediction results behave slightly different (curve slope) near Tc.


(D) Future work
1. Try Swendsen-Wang / Wolff algorithm

nohup python potts/run.py -L 40 -q 4 -N_run 2000 -fracN_ss 0.5 -Tini 0.0 -Tlast 2.0 -dt 0.05 G

potts2d_ml's People

Contributors

junkai2998 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

lcrypto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.