Giter VIP home page Giter VIP logo

ml-defect-analysis's Introduction

ML-defect-analysis

Python-based Machine Learning tools to analyze damage in materials by classification of defects

Building and Running ML tools

The following command uses the supplied Makefile to compile a supplementary tool that reads a .xyz structure file and converts it into a list of feature vectors. These feature vectors are the primary input for the main defect-classification ML program.

make

This compiles a new executable c_feature, which takes two arguments -- The first argument is the name of the .xyz file to be read. The second argument is the name of the file where the computed feature vectors are written out. Create a training set from the Ni_train.xyz file with the following command

./c_feature Ni_train.xyz feature/train.txt

Next, create a test set from the Ni_test1.xyz file with the following command

./c_feature Ni_test1.xyz feature/test_1.txt

Once we have the training and test datasets, we call the primary ML program SVM_model.py on the two files we just created using the following command

python SVM_model.py feature/train.txt feature/test_1.txt

The primary output of the ML program is the output.xyz file, which contains predicted and true labels for the different atoms. This file can be viewed in any atomistic visualization program to measure the accuracy of the ML classifier. In this example, we get >99% accuracy in defect classification, as shown below.

Predicted and True Labels

For more detailed information about the input data, feature vector construction and the Support Vector Model used for defect classification consult the slides from the MAGICS Workshop, ML_Workshop_Slides.pdf in the training folder.

ml-defect-analysis's People

Contributors

arvk avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar Ken-ichi Nomura avatar  avatar  avatar Patricia avatar  avatar  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.