Giter Club home page Giter Club logo

Comments (7)

hanfeng-cdd avatar hanfeng-cdd commented on June 29, 2024

In your code:
self.proxies = nn.Parameter(torch.randn(nb_classes, sz_embed))
torch.nn.init.xavier_uniform(self.proxies)

from proxy-nca.

dichotomies avatar dichotomies commented on June 29, 2024

Yes, the weight parameters are sampled from a normal distribution.

from proxy-nca.

SidraHanif180 avatar SidraHanif180 commented on June 29, 2024

@dichotomies Initially, the proxy weights are randomly sampled from normal distribution.
When the network starts to train, are the weights for the proxies updated class wise? In other words do we have a specific proxy embedding corresponding to particular class whose weights are updated during training?

from proxy-nca.

dichotomies avatar dichotomies commented on June 29, 2024

Hi Sidra, each proxy embedding corresponds to a particular class - also during training. It's somewhat like when training a classification model with softmax, but instead of having single units, we have embeddings. Hope that answers your question!

from proxy-nca.

tuanad121 avatar tuanad121 commented on June 29, 2024

Hi @dichotomies, I wanna make sure if I understand correctly. These proxies are randomly initialized once. And we never change them during the training. Is it right? Thanks for your helps.

from proxy-nca.

dichotomies avatar dichotomies commented on June 29, 2024

The proxies are randomly initialized and change during training.

from proxy-nca.

tuanad121 avatar tuanad121 commented on June 29, 2024

The proxies are randomly initialized and change during training.

Cool! That's all I need. Thanks for the answer

from proxy-nca.

Related Issues (19)

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.