Remove early exit threshold

It did not appear to be obviously helping the speed (or hurting the quality), so
remove it to reduce the number of concepts at play.
This commit is contained in:
Manav Rathi
2024-09-28 17:22:44 +05:30
parent 5a5e046192
commit e2c0aed2e4

View File

@@ -301,10 +301,6 @@ const clusterBatchLinear = async (
if (csim > nnCosineSimilarity && csim >= threshold) {
nnIndex = j;
nnCosineSimilarity = csim;
// If we've find something above our early exit threshold, stop
// looking for a better match (A way to speed up clustering).
if (csim >= 0.9) break;
}
}