Coder Social home page Coder Social logo

Comments (2)

pvnieo avatar pvnieo commented on June 8, 2024

Hi @ihmc3jn09hk ,
Some datasets in the zoo are already preprocessed so the shape area is equal to one, so that's not a problem.

Concerning your question, here a way to obtain the p2p map:

from sklearn.neighbors import NearestNeighbors

neigh = NearestNeighbors(n_jobs=-1)
neigh.fit(np.matmul(evecs_x, C1.transpose()))
p2p = neigh.kneighbors(evecs_y, 1, return_distance=False).flatten()

I'm using sklearn because it's faster, but you can use numpy as well. Hope this answer your question.

from surfmnet-pytorch.

ihmc3jn09hk avatar ihmc3jn09hk commented on June 8, 2024

Hi @ihmc3jn09hk ,
Some datasets in the zoo are already preprocessed so the shape area is equal to one, so that's not a problem.

Concerning your question, here a way to obtain the p2p map:

from sklearn.neighbors import NearestNeighbors

neigh = NearestNeighbors(n_jobs=-1)
neigh.fit(np.matmul(evecs_x, C1.transpose()))
p2p = neigh.kneighbors(evecs_y, 1, return_distance=False).flatten()

I'm using sklearn because it's faster, but you can use numpy as well. Hope this answer your question.

Thanks @pvnieo , I have tried the suggested one with some modifications as following to resolve some error. But the out p2p is identical to the one I had before. I think the problem is pin-pointed to my trained-weights.
It would be kind if you can share what parameters you used for training and a result sample overfit weight file for me to test my machine is broken ?

Shame, this part is my implementation problem.
With the weights, the output p2p for all 1500 matches is just a single point in shape X.

Finally got it working for the tiny set. The code works in training mode while I was using evaluation for the whole time.
The training curves are for k=60 and k=120.
image

from surfmnet-pytorch.

Related Issues (6)

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.