Giter VIP home page Giter VIP logo

landing's People

Contributors

pierreablin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

landing's Issues

Codes

Any updates on this?

Thanks!

Parameters yield nan values

Hi @pierreablin,

Updating the code of RotoGrad, I started using your library, and during testing I've found that the rotation matrices occasionally end up with nan parameters.

Debugging the code, I traced the bug to line 48 of the _safe_step_size function:

alpha = 2 * (lbda * d - a * d - 2 * lbda * d)
beta = a ** 2 + lbda ** 2 * d ** 3 + 2 * lbda * a * d ** 2 + a ** 2 * d
sol = (alpha + torch.sqrt(alpha ** 2 + 4 * beta * (eps - d))) / 2 / beta
return sol

Specifically, the distance to the manifold is bigger than epsilon (0.5) at times, and so the square root yields a nan value. Is this a bug, or am I missing any step? I project the orthogonal matrix at initialization as in the snippet code so that it starts within the manifold.

Thanks for the library!

The projection of the parameters

Hi @pierreablin, thank you for outstanding job! Recently, I have met a problem when using your code. In your code, before we use the landing algorithm to optimize the parameters on orthogonal manifolds, we need to project the parameters to make them orthogonal. But, I have found that when we initialize the optimzer which is based on the landing algorithm, the optimzer function will also project the parameters to be optimized to the orthogonal manifolds.(which can be found on the lines 142-144 of the optimzer.py) So, it looks like a repetition?

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.