[desktop] Fix early exit threshold (#3103)
This commit is contained in:
@@ -70,7 +70,7 @@ export default function ClusterDebug() {
|
||||
minScore: 0.8,
|
||||
minClusterSize: 2,
|
||||
joinThreshold: 0.7,
|
||||
earlyExitThreshold: 0.2,
|
||||
earlyExitThreshold: 0.8,
|
||||
batchSize: 10000,
|
||||
lookbackSize: 2500,
|
||||
},
|
||||
|
||||
@@ -519,7 +519,7 @@ const clusterLinear = (
|
||||
|
||||
// If we've found something "near enough", stop looking for a
|
||||
// better match. This speeds up clustering.
|
||||
if (earlyExitThreshold > 0 && csim < earlyExitThreshold)
|
||||
if (earlyExitThreshold > 0 && csim > earlyExitThreshold)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user