Giter Site home page Giter Site logo

cpeg_ml's Introduction

CPEG_ML

Based on the artifical Neural Network to fit the optical parameters

Before starting this project, you should install following libraries:

  1. Pytorch cpu or cuda version are both fine.
  2. Numpy; matplotlib

You can modify the training details/saving path in config.py.

You can start to train model by following command: python train.py.

The function of each py.files are defined as follows:

  1. config.py

    vth: the nth velocity with range of v1~v6

    epoch: total step of training process.

    N1/N2 mean that the nums of nerons in each layer and layesr is the nums of hidden layers.

    save_path is the training saving path, which include the training results.

    save_infer_path include the inference results.

  2. train.py

    Your can modify the training parameters in config.py. For example, your can change the vth to modify the target vth velocity in the machine learning process.

  3. inference.py

    (1). inference_results_mesh().

    In this function, you can infer the vth by feeding the mesh inputs into the well training model. The process of this calculation function is :

    for x in (-0.05, 0.05, 0.01):
    for y in (-0.05, 0.05, 0.01):
    for z in (-0.05, 0.05, 0.01):
    vth = model([x, y, z])

    (2). inference_results_uniform().

    In this function, you can infer the vth by feeding the uniform inputs into the well training model. The process of this calculation function is:

    for x in (-0.05, 0.05, 0.01):
    y, z = x
    vth = model([x, y, z])

    Additionally, you can change the strain direction by modifying the input_d vector. For example, input_d = [1, 0, 0] corresponds to strain along the x-direction, [1, 1, 0] corresponds xy direction.

cpeg_ml's People

Contributors

jyni16 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.