google-research / albert

ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
Apache License 2.0
3.23k stars 570 forks source link

different parameter position with api doc #206

Open cyjj opened 4 years ago

cyjj commented 4 years ago

https://github.com/google-research/albert/blob/a41cf11700c1ed2b7beab0a2649817fa52c8d6e1/classifier_utils.py#L922 in the repo the first one prediction and second one is label, while in official api doc their positions are reversed. Is there any special thinking behind this? https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/metrics/true_positives