Giter Club home page Giter Club logo

Comments (10)

lauri-codes avatar lauri-codes commented on May 28, 2024

Hi @StevenAlice93,

Sure, there are several options. I would encourage you to read our Open Access article: https://doi.org/10.1016/j.cpc.2019.106949

In short: MBTR, sine matrix, Ewald sum matrix work natively for crystals, ACSF and SOAP also work with a few tricks.

from dscribe.

StevenAlice93 avatar StevenAlice93 commented on May 28, 2024

Well done! Thank you! I want to know how to use it to transform the POSCAR into descriptors, and I don't find the API to do that.

from dscribe.

lauri-codes avatar lauri-codes commented on May 28, 2024

You can use ASE for reading structures from POSCAR files. The resulting Atoms object can then be used directly by dscribe.

from dscribe.

StevenAlice93 avatar StevenAlice93 commented on May 28, 2024

Dear lauri-codes,

Oh, thank you! I got it.

I have a another question: if I have two moleculars CH4 and H20, and I use the ACSF Class to get descriptors for them, I will get a numpy array with shape (3, 36) for H20 and a numpy array with shape (5,36) for CH4. For many machine learning models, they only accept these samples with the same length descriptors, so how do I input these descriptors input a machine learning model?

Thank you for your reply!

Best wishes!

from dscribe.

lauri-codes avatar lauri-codes commented on May 28, 2024

Hi @StevenAlice93,

I have just added a basic tutorial that should cover your questions.

from dscribe.

lauri-codes avatar lauri-codes commented on May 28, 2024

Closing for now.

from dscribe.

zhanzghang avatar zhanzghang commented on May 28, 2024

from dscribe.

lauri-codes avatar lauri-codes commented on May 28, 2024

Hi @zhanzghang,

The contents of formation_energy.extxyz come from OQMD 1.1. I created those files by using the SQL database that can be downloaded from http://oqmd.org.

from dscribe.

zhanzghang avatar zhanzghang commented on May 28, 2024

Dear Lauri,

when I used the Coulomb Matrix and Sine matrix to create the descriptor, it appeared 'ValueError: index can't contain negative values'. And I used the atoms to create the structure, included the Cartesian coordinates I have used in the 'position' for atoms, that really had some negative values. That's the reason for 'ValueError: index can't contain negative values'?

Thanks much for your time!

from dscribe.

lauri-codes avatar lauri-codes commented on May 28, 2024

Hi, @zhanzghang

The positions can certainly include negative values. The problem must be somewhere else. Could you include a minimal non-working example as a code snippet?

from dscribe.

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.