GithubHelp home page GithubHelp logo

2dmatsci / ml_raman_tblg Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 4.0 585 KB

Code and data for the paper ACS Applied Nano Materials 5, 1356-1366, 2022 doi:10.1021/acsanm.1c03928

Home Page: https://doi.org/10.1021/acsanm.1c03928

License: GNU General Public License v3.0

Python 100.00%
machine-learning raman-spectroscopy 2d-materials graphene twisted-bilayer-graphene

ml_raman_tblg's Introduction

Machine Learning Raman tBLG

This repository holds the example code and reduced dataset to determine the twist angle of twisted bilayer graphene (tBLG) from its Raman spectrum. The code is a functional version of that used in the published paper (ACS Applied Nano Materials 5, 1356-1366, 2022 doi:10.1021/acsanm.1c03928).

Usage

Start ml_raman_tblg.py with the arguments "train" or "predict":

  • For training the file containing the training dataset must be specified (train_dataset.csv) along with the desired ML algorithm and scaler (ml_raman_tblg.py train -h for help on usage). The trained model will be saved in a file.
  • For predicting, the files with the saved trained model and the dataset to predict must be provided (ml_raman_tblg.py predict -h for help on usage).

All the output files will be saved in the "results" folder.

For testing purposes, the complete training dataset (train_dataset.csv) is included, along with the datasets from figures 4d and 4g of ACS Applied Nano Materials 5, 1356-1366, 2022 doi:10.1021/acsanm.1c03928.

License

All code found and data in this repository is licensed under GPL v3

Copyright 2022 Pablo Solís-Fernández

This file is part of Machine Learning Raman tBLG

Machine Learning Raman tBLG is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your option)
any later version.

Machine Learning Raman tBLG is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
more details.

You should have received a copy of the GNU General Public License
along with Machine Learning Raman tBLG. If not, see <http://www.gnu.org/licenses/>.

Requirements

  • Scikit-learn 1.0
  • Pandas 1.2.4

Citations

The detailed results are provided in the following paper:

  • "Machine Learning Determination of the Twist Angle of Bilayer Graphene: Implications for Twisted van der Waals Heterostructures", P. Solís-Fernández and H. Ago, ACS Applied Nano Materials 5, 1356-1366, 2022 doi:10.1021/acsanm.1c03928.

If you find this useful, please consider citing the paper in your research.

ml_raman_tblg's People

Contributors

psolsfer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.