sentence_representation_matching icon indicating copy to clipboard operation
sentence_representation_matching copied to clipboard

sbert发现一处bug?

Open Garrfiiel opened this issue 1 year ago • 1 comments

sbert/train.py compute_acc()函数 23行accuracy_score() pred和lebel入参好像反了? acc = accuracy_score(pred.detach().cpu().numpy(), label.cpu().numpy()) 应该是acc = accuracy_score(label.cpu().numpy(), pred.detach().cpu().numpy())吗?

截图 2023-12-02 00-55-36

Garrfiiel avatar Dec 01 '23 16:12 Garrfiiel

感谢指正🤝

Macielyoung avatar Dec 04 '23 01:12 Macielyoung