-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix randomization to work with negative weights * Fix tests to take into account randomization * Remove experiment prob from settings
- Loading branch information
Showing
6 changed files
with
29 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
# Randomized tail selection of addons | ||
|
||
The `TAAR_EXPERIMENT_PROB` sets a probability that a user is in an experiment | ||
to get randomized recommendations. | ||
|
||
Randomized recommendations does not mean that recommendations are | ||
fully randomized. Weights for each recommendation are normalized to | ||
so that the sum of weights equals 1.0. | ||
|
||
Using `numpy.random.choice` - we then select a non-uniform random | ||
sample from the list of suggestions without replacement. Weights are | ||
used to define a vector of probabilities. | ||
|
||
|
||
By default - TAAR_EXPERIMENT_PROB is set to 0.0 which in effect | ||
disables the randomization feature. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters