Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to use scikit-learn distance functions for cost #54

Open
buchholzmd opened this issue Feb 18, 2022 · 0 comments
Open

Best way to use scikit-learn distance functions for cost #54

buchholzmd opened this issue Feb 18, 2022 · 0 comments

Comments

@buchholzmd
Copy link

I am trying to use the sklearn.metrics.pairwise.haversine_distances as the cost for SamplesLoss, in order to calculate the EMD for spherical distributions (see [https://arxiv.org/abs/2012.11116](EMLight: Lighting Estimation via Spherical Distribution)).

I am feeding in the sample locations in spherical coordinates (angles - dimensions [M,2]). The problem is when computing C_xx, C_yy, C_xy, C_yx, the cost function cannot do this for batches. What is the best way to efficiently implement this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant