Skip to content

Commit 1f29cc2

Browse files
committed
update evaluation set size on sortedDataSelection
1 parent f6ea3bc commit 1f29cc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/selection.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,10 @@ export class SortedDataSelection extends DataSelection {
10641064
);
10651065
newer.tiles = await Promise.all(withSort);
10661066
newer.selectionSize = newer.tiles.reduce((sum, t) => sum + t.matchCount, 0);
1067+
newer.evaluationSetSize = newer.tiles.reduce(
1068+
(sum, t) => sum + t.tile.metadata.nPoints,
1069+
0,
1070+
);
10671071
return newer;
10681072
}
10691073
// In addition to the regular things, we also need to add sort fields.

0 commit comments

Comments
 (0)