Coder Social home page Coder Social logo

Comments (3)

lauri-codes avatar lauri-codes commented on June 11, 2024

Hi @coolcodecamper,

As you say we are just now taking the first steps in getting this implemented. As we have limited experience in using the derivatives we are not sure what would be the ideal output shape.

Currently we were planning an output with shape [n_atoms, 3, n_features] (the second dimension goes over x, y, z components). Do you think that a 2D Jacobian matrix would be a better solution instead of this kind of 3D Jacobian? On one hand 2D output would nice as it can very simply be provided both as sparse and dense arrays (scipy sparse matrices can only be 2D). On the other hand, I think that having a better separation between the output components would make their usage easier.

Additionally, local descriptors like SOAP are typically calculated at several different locations in an atomic system. This means that we need one extra dimension in the derivatives output for each of these locations.

Your input is very much appreciated. Also others are very welcome to join this discussion.

from dscribe.

coolcodecamper avatar coolcodecamper commented on June 11, 2024

I am happy as long as the output is some numpy array containing all derivatives in a logical consistent shape. Then it should be straight-forward to reshape the output to 2D. In my case, I compute local descriptors for all atomic positions and flatten the output. So again my Jacobian is 2D.
I guess you are on the right track as it is probably easier to reduce dimensions of multi-dimensional output, than the increase dimensions of low-dimensional output.

from dscribe.

lauri-codes avatar lauri-codes commented on June 11, 2024

In 1.0.0 the derivatives are available for all atoms and multiple systems (currently SOAP only). We chose to return the derivatives as multi-dimensional arrays since this way as much of the layout information is preserved and it is easy to relayout it to whatever form you want. Closing for now.

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.