Coder Social home page Coder Social logo

Comments (2)

ajkerr0 avatar ajkerr0 commented on August 23, 2024

There's a good chance I never actually got the analytical gradients from the numpy vectorized operations, just the slow for loop method. It would explain why I didn't remember the broadcasting problem where you need to do something like parameterList[:,None] to do the operations element-wise

I might want to use np.where(bondList==index) (for example) to assign the forces to the right atoms; I used that command when I had the energy and gradient in the same factory function (because I thought that would be more effective seeing the code in one single place). I had a keyword argument that defaulted to False that signified if the gradient was being calculated or not. If so, only the energy associated with bonds, angles, etc that involved the atom in question were calculated.

from kappa.

ajkerr0 avatar ajkerr0 commented on August 23, 2024

Closing this issue. The fix involves applying the respective forces to the right atomic indices in the gradient. For now this is done via for loops as first attempts at vectorized application did not work.

from kappa.

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.