mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-03-25 09:25:51 +00:00
feat: Wider linking
This commit is contained in:
parent
da13f919bf
commit
975b90dcc3
1 changed files with 4 additions and 4 deletions
|
|
@ -269,12 +269,12 @@ function computeInitialPairsFast(allAgg, mappedSkus, limitPairs, isIgnoredPairFn
|
|||
const itemsShuf = items.slice();
|
||||
shuffleInPlace(itemsShuf, rnd);
|
||||
|
||||
const WORK_CAP = 1400;
|
||||
const WORK_CAP = 2500;
|
||||
const work = itemsShuf.length > WORK_CAP ? itemsShuf.slice(0, WORK_CAP) : itemsShuf;
|
||||
|
||||
const seeds = topSuggestions(work, Math.min(220, work.length), "", mappedSkus);
|
||||
const seeds = topSuggestions(work, Math.min(400, work.length), "", mappedSkus);
|
||||
|
||||
const TOKEN_BUCKET_CAP = 180;
|
||||
const TOKEN_BUCKET_CAP = 250;
|
||||
const tokMap = new Map();
|
||||
const itemTokens = new Map();
|
||||
const itemNormName = new Map();
|
||||
|
|
@ -291,7 +291,7 @@ function computeInitialPairsFast(allAgg, mappedSkus, limitPairs, isIgnoredPairFn
|
|||
}
|
||||
|
||||
const bestByPair = new Map();
|
||||
const MAX_CAND_TOTAL = 90;
|
||||
const MAX_CAND_TOTAL = 150;
|
||||
const MAX_FINE = 6;
|
||||
|
||||
for (const a of seeds) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue