From cf11b020e5b7e6178d3c298eec55a2d63399840d Mon Sep 17 00:00:00 2001 From: Joshua Wehner Date: Thu, 4 Aug 2022 17:06:58 +0200 Subject: [PATCH] Feed experiment for 2022-08-01 (#18269) Co-authored-by: Josh Puetz --- config/feed-variants/20220801-variant-a.json | 118 +++++++++++++++++++ config/feed-variants/20220801-variant-b.json | 111 +++++++++++++++++ config/field_test.yml | 28 +++++ 3 files changed, 257 insertions(+) create mode 100644 config/feed-variants/20220801-variant-a.json create mode 100644 config/feed-variants/20220801-variant-b.json diff --git a/config/feed-variants/20220801-variant-a.json b/config/feed-variants/20220801-variant-a.json new file mode 100644 index 000000000..c5c75b042 --- /dev/null +++ b/config/feed-variants/20220801-variant-a.json @@ -0,0 +1,118 @@ +{ + "max_days_since_published": 15, + "description": "2022-AUG-01-A with variations in public_reactions weights", + "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.5], + [1, 0.53], + [2, 0.56], + [3, 0.59], + [4, 0.62], + [5, 0.65], + [6, 0.68], + [7, 0.71], + [8, 0.74], + [9, 0.77], + [10, 0.8], + [11, 0.83], + [12, 0.86], + [13, 0.89], + [14, 0.92], + [15, 0.95], + [16, 0.98] + ], + "fallback": 1 + } + } +} diff --git a/config/feed-variants/20220801-variant-b.json b/config/feed-variants/20220801-variant-b.json new file mode 100644 index 000000000..6374f0042 --- /dev/null +++ b/config/feed-variants/20220801-variant-b.json @@ -0,0 +1,111 @@ +{ + "max_days_since_published": 15, + "description": "2022-AUG-01-A with variations in public_reactions weights", + "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.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] + ], + "fallback": 1 + } + } +} diff --git a/config/field_test.yml b/config/field_test.yml index 0b3490482..3c4d8e3a0 100644 --- a/config/field_test.yml +++ b/config/field_test.yml @@ -28,10 +28,38 @@ ################################################################################ experiments: # NOTE: Our feed strategy testing experiment must begin with "feed_strategy" + feed_strategy_starting_20220801: + # NOTE: Required as we want only want to consider for conversion events that + # occurred on or after the given start_date. + started_at: 2022-08-01 + variants: + - 20220726-variant-b + - 20220801-variant-b + - 20220801-variant-a + weights: + - 50 + - 25 + - 25 + goals: + - user_creates_pageview + - user_creates_article_reaction + - user_creates_comment + - user_publishes_post + - user_views_pages_on_at_least_four_different_days_within_a_week + - user_creates_article_reaction_on_four_different_days_within_a_week + - user_creates_comment_on_at_least_four_different_days_within_a_week + - user_publishes_post_on_four_different_days_within_a_week + - user_views_pages_on_at_least_four_different_hours_within_a_day + - user_views_pages_on_at_least_twelve_different_hours_within_five_days + - user_views_pages_on_at_least_nine_different_days_within_two_weeks + - user_publishes_post_at_least_two_times_within_week + - user_publishes_post_at_least_two_times_within_two_weeks feed_strategy_starting_20220726: # NOTE: Required as we want only want to consider for conversion events that # occurred on or after the given start_date. started_at: 2022-07-26 + ended_at: 2022-08-01 + winner: 20220726-variant-b variants: - 20220719-variant-b - 20220726-variant-a