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
No description provided.
The text was updated successfully, but these errors were encountered:
我什么时候用到了batch_labels?
Sorry, something went wrong.
预料样本生成里有
我的问题是哪里用了batch_labels,不是哪里创建了batch_labels。创建了不代表用了,它可能只是一个占位符。
你既然没找到哪里用了batch_labels,怎么可以这么自信地断定“相似度矩阵y_pred不应该为1吗”?
batch_labels作为数据标签,一般是在loss函数中使用的。但本程序中,simcse_loss中的y_true是基于y_pred生成的,所以事实上没有用到数据标签计算loss,这也是为什么作者在博客中说无监督语义相似度比较嘛。要是用了数据标签,那就是有监督了。
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: