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

about classifier weight initial #36

Closed
Youskrpig opened this issue Sep 15, 2020 · 2 comments
Closed

about classifier weight initial #36

Youskrpig opened this issue Sep 15, 2020 · 2 comments

Comments

@Youskrpig
Copy link

Hi, thanks for your great work, i noticed in base_train_dbscan.py, line 171
model.module.classifier.weight.data[:args.num_clusters].copy_(F.normalize(cluster_centers, dim=1).float().cuda())
what does it mean and why not directly setting classifier weight==0?
Looking for your reply.

@yxgeee
Copy link
Owner

yxgeee commented Sep 15, 2020

We use cluster centroids to initialize the classifier weights for better convergence.

@Youskrpig
Copy link
Author

get it

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

2 participants