cuai / differentiable-frechet-mean Goto Github PK
View Code? Open in Web Editor NEW[ICML 2020] Differentiating through the Fréchet Mean (https://arxiv.org/abs/2003.00335).
License: MIT License
[ICML 2020] Differentiating through the Fréchet Mean (https://arxiv.org/abs/2003.00335).
License: MIT License
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
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.