Giter Site home page Giter Site logo

NAN values in NNP training about maml HOT 3 CLOSED

zhenming-xu avatar zhenming-xu commented on August 20, 2024
NAN values in NNP training

from maml.

Comments (3)

JiQi535 avatar JiQi535 commented on August 20, 2024

Hello! Recently, I encountered a problem of some NAN values in the first column of the weights.XXX.data file when NNP training.

The following is my NNP training paramaters,

"nnp.train(train_structures=train_structures, train_energies=train_energies, train_forces=train_forces, cutoff_type=1, r_etas=[0.5,2.0], a_etas=[0.5,2.0], r_shift=[0.0], zetas=[1.0,4.0], r_cut=4.2, hidden_layers=[4,4], epochs=5)"

Very strangely, running the example(https://github.com/materialsvirtuallab/maml/blob/master/notebooks/pes/nnp/example.ipynb) in my cumputer is OK!

Hi Zhenming, thanks for reporting this issue. Since you mentioned that the notebook can be correctly executed, I suspect that the input you gave to the nnp.train() method could be problematic. I'm not sure how you chose the parameters like r_shift, but please make sure they are reasonable values. For example, your setting of r_shift=[0.0] is not found in the recommended settings given by n2p2 (https://github.com/CompPhysVienna/n2p2/blob/master/examples/input.nn.recommended).

You may try the default recommended settings for the symmetry function and see if the error exists. If so, please report this issue to the n2p2 repo (https://github.com/CompPhysVienna/n2p2), as the weight.XXX.data file is generated in the n2p2 training process by the nnp executable.

Please kindly let us know how you figured out the issue. Thanks.

from maml.

JiQi535 avatar JiQi535 commented on August 20, 2024

Hi @zhenming-xu , can I ask if this issue is solved?

from maml.

zhenming-xu avatar zhenming-xu commented on August 20, 2024

from maml.

Related Issues (20)

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.