diff --git a/solution/README.md b/solution/README.md index 08adbea..87f5326 100644 --- a/solution/README.md +++ b/solution/README.md @@ -178,7 +178,7 @@ I cache every mlscore in redis (btw, on startup of docker compose i upload each Here is how suggesting algotitm looks like: 1. Filter all campaigns and left only that currently active and matches user targeting. -2. Filter all campaigns with exceeded impressions, but to make more money i let exceed limit by 10% with chance 40% +2. Filter all campaigns with exceeded impressions, but to make more money i let exceed limit by 10% with chance 25% 3. Creating metrics for each campaign 1. Profit: cost_per_impression (=0 if already viewed), cost_per_click (=0 if already clicked) 2. Mlscores: from cache diff --git a/solution/services/backend/apps/campaign/models.py b/solution/services/backend/apps/campaign/models.py index c612e59..98c1d64 100644 --- a/solution/services/backend/apps/campaign/models.py +++ b/solution/services/backend/apps/campaign/models.py @@ -344,7 +344,7 @@ class Campaign(BaseModel): profit_values = [] exceed_impressions_chance = ( # oh, can i just skip commenting this? *(0 for i in range(3)), - *(1 for i in range(2)), + *(1 for i in range(1)), ) for campaign in campaigns: