Giter Club home page Giter Club logo

differentiable-frechet-mean's People

Contributors

louaaron avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

differentiable-frechet-mean's Issues

RBN with the Lorentz model fails

I did the same setup as in the example but replace Poincare with Lorentz. This leads to a dimension mismatch and the forward fails.

line 21, in _ldot
    m = u * v
RuntimeError: The size of tensor a (3) must match the size of tensor b (4) at non-singleton dimension 0

Can it extend to a batch version?

Hi, thanks for your great work that provides a solution to calculate the Frechet mean.

The code you released only supports to calculate one 'mean' for a set of points on some manifold. Do you plan to realize a version for batch compution.

By the way, it seems to be time-consuming while the hyper-parameter "max_iter" is set to 1000 defaultly. Is there any suggestion or experiment evaluation of trade-off between the time complexity and accuracy?

Best regards.

Using Lorentz model returns nan

Hi, thank you for sharing this work. I found that using Lorentz model returns nan most of the time. I am not sure if this is because the Lornetz model is unbounded.

reproduce case study of HGCN

Thanks for this beautiful work.
Sorry I'm new to torch. I'm not sure if this is how you modified HGCN to incorporate Frechet mean, note line 72(unchanged) and 78(changed):
Capture
But this comes with errors. Could you tell me how exactly you did?
Thanks!

Potential bug of hyperboloid frechet mean

Applying frechet mean on the Lorentz model with K not equal to -1 cannot get the correct answer.

I found the bug in frechetmean/forward/hyperboloid_forward.py. Where the original code calculate variable mu with
mu = u / torch.sqrt(K * Lorentz._ldot(u, u, keepdim=True))

Changing it to
mu = - K * u / torch.sqrt(K * Lorentz._ldot(u, u, keepdim=True))
solves the problem.

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.