Comments (7)
In your code:
self.proxies = nn.Parameter(torch.randn(nb_classes, sz_embed))
torch.nn.init.xavier_uniform(self.proxies)
from proxy-nca.
Yes, the weight parameters are sampled from a normal distribution.
from proxy-nca.
@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.
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.
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.
The proxies are randomly initialized and change during training.
from proxy-nca.
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)
- could you report performance of your implementation? HOT 3
- question about nca loss
- can not reproduce the performance HOT 4
- Magic numbers HOT 1
- function pairwise_distance HOT 1
- Wondering if the proxy nca is just the softmax loss HOT 1
- Wonder about proxyNCA loss HOT 1
- Class Labels
- Question: How to obtain the predicted result?
- Where the proxies are changed during training HOT 1
- What about dynamic assignment
- Result HOT 9
- Not runnable HOT 2
- Dealing with Multi-Label Classifier Models
- Other datasets and a remark HOT 3
- Early overfit? HOT 7
- question about the decrease process of the loss HOT 2
- could you report performance of you implementation on Cars196 and SOP? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxy-nca.