Giter Club home page Giter Club logo

Comments (6)

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

Hi @wushanyun64,

You can see how the output of SOAP is ordered at the tutorial page. (see the pseudo-code block on that page). Essentially you're right in that the output is ordered into pairs of species.

Would you think that implementing a function that would return the indices of specific species-combinations would serve your purpose? We already provide this kind of function for MBTR (see here), so to stay consistent we could also implement if for SOAP and ACSF. What do you think?

from dscribe.

wushanyun64 avatar wushanyun64 commented on May 28, 2024

Hi @wushanyun64,

You can see how the output of SOAP is ordered at the tutorial page. (see the pseudo-code block on that page). Essentially you're right in that the output is ordered into pairs of species.

Would you think that implementing a function that would return the indices of specific species-combinations would serve your purpose? We already provide this kind of function for MBTR (see here), so to stay consistent we could also implement if for SOAP and ACSF. What do you think?

Hi, Lauri:
If we can have a function like get_location() in SOAP, that would be very helpful! I imagine something like :

soap.get_location((Zi,Zj)):
    return ((a,b) which indicates the slice corresponds to the location of P{Zi, Zj})

Also, one question, since based on the SOAP tutorial, in the SOAP vector both P{Zi, Zj} and P{Zj, Zi} will be calculated, how you will address this in the function get_location()? Thank you!

from dscribe.

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

I'm now preparing a bigger update for version 0.3.0 and I can include get_location() in it. I will publish it within a few days.

Also, one question, since based on the SOAP tutorial, in the SOAP vector both P{Zi, Zj} and P{Zj, Zi} will be calculated, how you will address this in the function get_location()? Thank you!

Actually only one of the identical pairs (I think the one where i<=j) is included in the SOAP output. The get_location()-function would accept both (Z_i, Z_j) and (Z_j, Z_i) as arguments, but would return the same location. This is also how it works for MBTR.

from dscribe.

wushanyun64 avatar wushanyun64 commented on May 28, 2024

That's great, can't waiting to try the new version.

from dscribe.

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

Hi @wushanyun64,

The get_location()-method can now be found in the development version 0.3.0a0 that can be installed from the git master branch. (just to git clone [email protected]:SINGROUP/dscribe.git and pip install . within the cloned folder)

I'm still workin on some features for the 0.3.0 release. When that is ready, you can find this same feature on version 0.3.0.) Message me here if you find any issues with the implementation.

from dscribe.

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

The get_location function is now available in version 0.3.2 which is available through pip.

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.