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

question about 3.1.2 KL divergence minimization #21

Closed
xiyuyu opened this issue Apr 27, 2017 · 0 comments
Closed

question about 3.1.2 KL divergence minimization #21

xiyuyu opened this issue Apr 27, 2017 · 0 comments

Comments

@xiyuyu
Copy link

xiyuyu commented Apr 27, 2017

  Dtype qij = cpu_inv_sigma_prod[j]*std::pow(cpu_mask[i*N_+j], alpha_exp)/norm;
  cpu_proba[i*N_ + j] = qij;
  Dtype pij = cpu_label[i*N_+j];
  //Dtype pij = qij*qij/sqr_norm;
  cpu_mask[i*N_+j] = alpha_weight*cpu_mask[i*N_+j]*(pij - qij);
  cpu_coefm[i] += cpu_mask[i*N_+j];
  cpu_coefn[j] += cpu_mask[i*N_+j];
  loss += pij * std::log(pij/qij);

what is cpu_label? Is it the label information?

@xiyuyu xiyuyu changed the title question about 3.1.2 KL divergence minimization The label information during training seems to be used in this code Apr 27, 2017
@xiyuyu xiyuyu changed the title The label information during training seems to be used in this code The label information seems to be used during training in this code Apr 27, 2017
@xiyuyu xiyuyu changed the title The label information seems to be used during training in this code The label information seems to be used in this code Apr 27, 2017
@xiyuyu xiyuyu closed this as completed Apr 28, 2017
@xiyuyu xiyuyu changed the title The label information seems to be used in this code question about 3.1.2 KL divergence minimization Apr 28, 2017
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