GithubHelp home page GithubHelp logo

henriklg / ising-model-analysis Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 15.48 MB

FYS-STK4155 Project 2

Home Page: https://www.uio.no/studier/emner/matnat/fys/FYS-STK4155/index-eng.html

Python 100.00%
linear regression logistic neural-network ising

ising-model-analysis's Introduction

Ising Model Analysis

Project 2 in FYS-STK4155 by Betina Høyer Wester, Mona Heggen and Henrik Gjestang. Course taken fall of 2018.

In this project, we studied 1D and 2D Ising model data with different machine learning techniques. More details may be found in the project report.

Data

We use generated data sets and a data set from "A high-bias, low-variance introduction to Machine Learning for physicists" by Mehta et al. Since the latter is rather large, we randomly chose 10% of it in the readData script to use in the classification algorithms (saved as test_set.npy).

LinearRegression

This script contains all the functions necessary to estimate the Ising energy from a generated set of spin variables. Ordinary Least Squares, Ridge Regression and the Lasso are used, and with the bootstrap algorithm, one can evaluate the fit using the estimate MSE, R2-score, bias and variance.

LogisticRegression

This file contains all the functions necessary for a binary classification of spin lattices using logistic regression and gradient descent methods.

ReadData

Reads the data obtained from "A high-bias, low-variance introduction to Machine Learning for physicists". This data is used to train and evaluate the logistic regression classifier.

test_logreg

Tests the logistic regression method.

NeuralNetwork

neuralNetwork is used for regression analysis. neuralNetwork_Classification is used for binary classification purposes. Both can have an arbitrary number of hidden layers, initialised with hiddenLayer.

ising-model-analysis's People

Contributors

betinahw avatar henriklg avatar signusrobotics avatar

Watchers

 avatar

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.