Diff between `20220617-variant-a` and `20220719-variant-a` (e.g. the new
incumbent with minor tweaks):
```
3c3
< "description": "Blend of 20220603-variant-b and 20220603-variant-a",
---
> "description": "Copy of 20220617-variant-a with tweak to negative privileged user",
84,85c84,85
< "negative_reaction_threshold": -10,
< "positive_reaction_threshold": 10
---
> "negative_reaction_threshold": -9,
> "positive_reaction_threshold": 4
```
**Note**: In the above I'm adjusting the `negative_reaction_threshold`
and `positive_reaction_threshold` to reflect the value of the privileged
user reaction points:
```ruby
class Reaction < ApplicationRecord
BASE_POINTS = {
"vomit" => -50.0,
"thumbsup" => 5.0,
"thumbsdown" => -10.0
}.freeze
```
See the [current state of app/models/reaction.rb](817db3e6f8/app/models/reaction.rb (L1-L6))
Further, the thresholds are exclusive (e.g. `<` or `>` not `<=` or `>=`).
Diff between `20220719-variant-a` (e.g. the new incumbent) and
`20220719-variant-b` (e.g. the challenger)
```
3c3
< "description": "Copy of 20220617-variant-a with tweak to negative privileged user",
---
> "description": "Copy of 20220619-variant-a with tweak to comments range",
37,46c37,54
< [0, 0.8],
< [1, 0.82],
< [2, 0.84],
< [3, 0.86],
< [4, 0.88],
< [5, 0.9],
< [6, 0.92],
< [7, 0.94],
< [8, 0.96],
< [9, 0.98]
---
> [0, 0.5],
> [1, 0.6],
> [2, 0.66],
> [3, 0.7],
> [4, 0.75],
> [5, 0.8],
> [6, 0.85],
> [7, 0.88],
> [8, 0.9],
> [9, 0.92],
> [12, 1.0],
> [18, 1.0],
> [22, 1.0],
> [25, 1.0],
> [30, 1.0],
> [35, 1.0],
> [40, 1.0],
> [45, 1.0]
48c56
< "fallback": 1
---
> "fallback": 0.98
```
Closes forem/forem#18155
Related to forem/forem-internal-eng#453
105 lines
2.1 KiB
JSON
105 lines
2.1 KiB
JSON
{
|
|
"max_days_since_published": 15,
|
|
"description": "Copy of 20220619-variant-a with tweak to comments range",
|
|
"order_by": "final_order_by_random_weighted_to_score",
|
|
"reseed_randomizer_on_each_request": false,
|
|
"levers": {
|
|
"daily_decay": {
|
|
"cases": [
|
|
[0, 1],
|
|
[1, 0.99],
|
|
[2, 0.985],
|
|
[3, 0.98],
|
|
[4, 0.975],
|
|
[5, 0.97],
|
|
[6, 0.965],
|
|
[7, 0.96],
|
|
[8, 0.955],
|
|
[9, 0.95],
|
|
[10, 0.945],
|
|
[11, 0.94],
|
|
[12, 0.935],
|
|
[13, 0.93],
|
|
[14, 0.925]
|
|
],
|
|
"fallback": 0.9
|
|
},
|
|
"comments_count_by_those_followed": {
|
|
"cases": [
|
|
[0, 0.95],
|
|
[1, 0.98],
|
|
[2, 0.99]
|
|
],
|
|
"fallback": 0.93
|
|
},
|
|
"comments_count": {
|
|
"cases": [
|
|
[0, 0.5],
|
|
[1, 0.6],
|
|
[2, 0.66],
|
|
[3, 0.7],
|
|
[4, 0.75],
|
|
[5, 0.8],
|
|
[6, 0.85],
|
|
[7, 0.88],
|
|
[8, 0.9],
|
|
[9, 0.92],
|
|
[12, 1.0],
|
|
[18, 1.0],
|
|
[22, 1.0],
|
|
[25, 1.0],
|
|
[30, 1.0],
|
|
[35, 1.0],
|
|
[40, 1.0],
|
|
[45, 1.0]
|
|
],
|
|
"fallback": 0.98
|
|
},
|
|
"featured_article": { "cases": [[1, 1]], "fallback": 0.85 },
|
|
"latest_comment": {
|
|
"cases": [
|
|
[0, 1],
|
|
[1, 0.9988]
|
|
],
|
|
"fallback": 0.988
|
|
},
|
|
"matching_negative_tags_intersection_count": {
|
|
"cases": [
|
|
[0, 1],
|
|
[1, 0.5],
|
|
[2, 0.4],
|
|
[3, 0.3],
|
|
[4, 0.2]
|
|
],
|
|
"fallback": 0
|
|
},
|
|
"matching_positive_tags_intersection_count": {
|
|
"cases": [
|
|
[0, 0.5],
|
|
[1, 0.85],
|
|
[2, 0.9],
|
|
[3, 0.95],
|
|
[4, 1]
|
|
],
|
|
"fallback": 1
|
|
},
|
|
"privileged_user_reaction": {
|
|
"cases": [
|
|
[-1, 0.2],
|
|
[1, 1]
|
|
],
|
|
"fallback": 0.95,
|
|
"negative_reaction_threshold": -9,
|
|
"positive_reaction_threshold": 4
|
|
},
|
|
"public_reactions": {
|
|
"cases": [
|
|
[0, 0.9988],
|
|
[1, 0.9988],
|
|
[2, 0.9988],
|
|
[3, 0.9988]
|
|
],
|
|
"fallback": 1
|
|
}
|
|
}
|
|
}
|