We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm under the impression that the loss function of the cluster probe is simply the entropy of the cluster probabilities.
However, in the ClusterLookup class in modules.py, the loss function is defined as
cluster_loss = -(cluster_probs * inner_products).sum(1).mean()
Shouldn't this instead be
cluster_loss = -(cluster_probs * cluster_probs.log()).sum(1).mean()
Or alternatively (assuming alpha = 1),
cluster_probs_log = inner_products - inner_products.exp().sum(1, keepdims=True).log() cluster_loss = -(cluster_probs * cluster_probs_log).sum(1).mean()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm under the impression that the loss function of the cluster probe is simply the entropy of the cluster probabilities.
However, in the ClusterLookup class in modules.py, the loss function is defined as
Shouldn't this instead be
Or alternatively (assuming alpha = 1),
The text was updated successfully, but these errors were encountered: