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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user