From 6d3a7f8b2ce544a56ba1e16f2a0215d5daa5db46 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sat, 9 Apr 2022 18:08:37 -0500 Subject: [PATCH] Tweak some params --- web/hooks/use-algo-feed.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/hooks/use-algo-feed.ts b/web/hooks/use-algo-feed.ts index eb6dbab3..68958821 100644 --- a/web/hooks/use-algo-feed.ts +++ b/web/hooks/use-algo-feed.ts @@ -64,7 +64,7 @@ const getAlgoFeed = ( const contractsById = _.keyBy(contracts, (c) => c.id) const recommended = getRecommendedContracts(contractsById, yourBetContractIds) - const confidence = logInterpolation(0, 100, yourBetContractIds.length + 1) + const confidence = logInterpolation(0, 100, yourBetContractIds.length) const recommendedScores = _.fromPairs( recommended.map((c, index) => { const score = 1 - index / recommended.length @@ -129,7 +129,8 @@ function getContractsActivityScores( const commentCount = contractComments[contract.id]?.length ?? 0 const betCount = contractBets[contract.id]?.length ?? 0 const activtyCount = betCount + commentCount * 5 - const activityCountScore = logInterpolation(0, 200, activtyCount) + const activityCountScore = + 0.5 + 0.5 * logInterpolation(0, 200, activtyCount) const lastBetTime = contractMostRecentBet[contract.id]?.createdTime const timeSinceLastBet = !lastBetTime