Fix typos in AUC. (#6795)

This commit is contained in:
Jiaming Yuan
2021-03-31 16:35:42 +08:00
committed by GitHub
parent ca998df912
commit 905fdd3e08
2 changed files with 5 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ struct DeviceAUCCache {
*
* - Run scan to obtain TP/FP values, which are right coordinates of trapesoid.
* - Find distinct prediction values and get the corresponding FP_PREV/TP_PREV value,
* which are left coordinates of trapesoid.
* which are left coordinates of trapesoids.
* - Reduce the scan array into 1 AUC value.
*/
std::tuple<float, float, float>
@@ -151,7 +151,7 @@ GPUBinaryAUC(common::Span<float const> predts, MetaInfo const &info,
d_neg_pos[d_unique_idx[i]] = d_fptp[d_unique_idx[i] - 1];
if (i == d_unique_idx.size() - 1) {
// last one needs to be included, may override above assignment if the last
// prediction value is district from previous one.
// prediction value is distinct from previous one.
d_neg_pos.back() = d_fptp[d_unique_idx[i] - 1];
return;
}