From 4f8f828a4490bcc1f4e1cc2a8cb18d2813894119 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Mon, 18 Sep 2023 17:40:09 -0400 Subject: [PATCH] New feed experiments for 9/18 (#20130) --- config/feed-variants/20230918-variant-a.json | 132 +++++++++++++++++++ config/feed-variants/20230918-variant-b.json | 132 +++++++++++++++++++ config/feed-variants/20230918-variant-c.json | 132 +++++++++++++++++++ config/field_test.yml | 28 ++++ 4 files changed, 424 insertions(+) create mode 100644 config/feed-variants/20230918-variant-a.json create mode 100644 config/feed-variants/20230918-variant-b.json create mode 100644 config/feed-variants/20230918-variant-c.json diff --git a/config/feed-variants/20230918-variant-a.json b/config/feed-variants/20230918-variant-a.json new file mode 100644 index 000000000..8b682943b --- /dev/null +++ b/config/feed-variants/20230918-variant-a.json @@ -0,0 +1,132 @@ +{ + "max_days_since_published": 15, + "description": "Built off 20230814-variant-b but final ordering by final_order_by_feed_success_score.", + "order_by": "final_order_by_feed_success_score", + "reseed_randomizer_on_each_request": false, + "levers": { + "daily_decay": { + "cases": [ + [0, 1], + [1, 0.99], + [2, 0.905], + [3, 0.9], + [4, 0.89], + [5, 0.85], + [6, 0.82], + [7, 0.79], + [8, 0.15], + [9, 0.1], + [10, 0.09], + [11, 0.08], + [12, 0.07], + [13, 0.06], + [14, 0.05] + ], + "fallback": 0.01 + }, + "comments_count": { + "cases": [ + [0, 0.15], + [1, 0.3], + [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.99 + }, + "following_author": { + "cases": [ + [0, 0.7], + [1, 1] + ], + "fallback": 0.7 + }, + "featured_article": { "cases": [[1, 1]], "fallback": 0.15 }, + "matching_negative_tags_intersection_count": { + "cases": [ + [0, 1], + [1, 0.2], + [2, 0.15], + [3, 0.1], + [4, 0.05] + ], + "fallback": 0 + }, + "experience": { + "cases": [ + [0, 1], + [1, 0.97], + [2, 0.95], + [3, 0.88], + [4, 0.77], + [5, 0.55], + [6, 0.35], + [7, 0.3] + ], + "default_user_experience_level": 5, + "fallback": 0.2 + }, + "matching_positive_tags_intersection_count": { + "cases": [ + [0, 0.001], + [1, 0.97] + ], + "fallback": 1 + }, + "matching_positive_tags_intersection_points": { + "cases": [ + [0, 0.001], + [1, 0.45], + [2, 0.5], + [3, 0.7], + [4, 0.75], + [5, 0.8], + [6, 0.85], + [7, 0.9], + [8, 0.93], + [9, 0.95] + ], + "fallback": 1 + }, + "privileged_user_reaction": { + "cases": [ + [-1, 0.2], + [1, 1] + ], + "fallback": 0.95, + "negative_reaction_threshold": -9, + "positive_reaction_threshold": 4 + }, + "public_reactions_score": { + "cases": [ + [0, 0.3], + [1, 0.4], + [2, 0.45], + [3, 0.5], + [4, 0.55], + [5, 0.6], + [6, 0.61], + [7, 0.62], + [8, 0.7], + [9, 0.8], + [10, 0.85], + [11, 0.9], + [12, 0.95] + ], + "fallback": 1.0 + } + } +} diff --git a/config/feed-variants/20230918-variant-b.json b/config/feed-variants/20230918-variant-b.json new file mode 100644 index 000000000..f1126774c --- /dev/null +++ b/config/feed-variants/20230918-variant-b.json @@ -0,0 +1,132 @@ +{ + "max_days_since_published": 15, + "description": "Built off 20230814-variant-b but final ordering by final_order_by_feed_success_score_and_primary_score.", + "order_by": "final_order_by_feed_success_score_and_primary_score", + "reseed_randomizer_on_each_request": false, + "levers": { + "daily_decay": { + "cases": [ + [0, 1], + [1, 0.99], + [2, 0.905], + [3, 0.9], + [4, 0.89], + [5, 0.85], + [6, 0.82], + [7, 0.79], + [8, 0.15], + [9, 0.1], + [10, 0.09], + [11, 0.08], + [12, 0.07], + [13, 0.06], + [14, 0.05] + ], + "fallback": 0.01 + }, + "comments_count": { + "cases": [ + [0, 0.15], + [1, 0.3], + [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.99 + }, + "following_author": { + "cases": [ + [0, 0.7], + [1, 1] + ], + "fallback": 0.7 + }, + "featured_article": { "cases": [[1, 1]], "fallback": 0.15 }, + "matching_negative_tags_intersection_count": { + "cases": [ + [0, 1], + [1, 0.2], + [2, 0.15], + [3, 0.1], + [4, 0.05] + ], + "fallback": 0 + }, + "experience": { + "cases": [ + [0, 1], + [1, 0.97], + [2, 0.95], + [3, 0.88], + [4, 0.77], + [5, 0.55], + [6, 0.35], + [7, 0.3] + ], + "default_user_experience_level": 5, + "fallback": 0.2 + }, + "matching_positive_tags_intersection_count": { + "cases": [ + [0, 0.001], + [1, 0.97] + ], + "fallback": 1 + }, + "matching_positive_tags_intersection_points": { + "cases": [ + [0, 0.001], + [1, 0.45], + [2, 0.5], + [3, 0.7], + [4, 0.75], + [5, 0.8], + [6, 0.85], + [7, 0.9], + [8, 0.93], + [9, 0.95] + ], + "fallback": 1 + }, + "privileged_user_reaction": { + "cases": [ + [-1, 0.2], + [1, 1] + ], + "fallback": 0.95, + "negative_reaction_threshold": -9, + "positive_reaction_threshold": 4 + }, + "public_reactions_score": { + "cases": [ + [0, 0.3], + [1, 0.4], + [2, 0.45], + [3, 0.5], + [4, 0.55], + [5, 0.6], + [6, 0.61], + [7, 0.62], + [8, 0.7], + [9, 0.8], + [10, 0.85], + [11, 0.9], + [12, 0.95] + ], + "fallback": 1.0 + } + } +} diff --git a/config/feed-variants/20230918-variant-c.json b/config/feed-variants/20230918-variant-c.json new file mode 100644 index 000000000..ad74dac36 --- /dev/null +++ b/config/feed-variants/20230918-variant-c.json @@ -0,0 +1,132 @@ +{ + "max_days_since_published": 15, + "description": "Built off 20230814-variant-b but more weight for tag follwing points.", + "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.905], + [3, 0.9], + [4, 0.89], + [5, 0.85], + [6, 0.82], + [7, 0.79], + [8, 0.15], + [9, 0.1], + [10, 0.09], + [11, 0.08], + [12, 0.07], + [13, 0.06], + [14, 0.05] + ], + "fallback": 0.01 + }, + "comments_count": { + "cases": [ + [0, 0.15], + [1, 0.3], + [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.99 + }, + "following_author": { + "cases": [ + [0, 0.7], + [1, 1] + ], + "fallback": 0.7 + }, + "featured_article": { "cases": [[1, 1]], "fallback": 0.15 }, + "matching_negative_tags_intersection_count": { + "cases": [ + [0, 1], + [1, 0.2], + [2, 0.15], + [3, 0.1], + [4, 0.05] + ], + "fallback": 0 + }, + "experience": { + "cases": [ + [0, 1], + [1, 0.97], + [2, 0.95], + [3, 0.88], + [4, 0.77], + [5, 0.55], + [6, 0.35], + [7, 0.3] + ], + "default_user_experience_level": 5, + "fallback": 0.2 + }, + "matching_positive_tags_intersection_count": { + "cases": [ + [0, 0.001], + [1, 0.97] + ], + "fallback": 1 + }, + "matching_positive_tags_intersection_points": { + "cases": [ + [0, 0.001], + [1, 0.55], + [2, 0.66], + [3, 0.79], + [4, 0.84], + [5, 0.89], + [6, 0.92], + [7, 0.93], + [8, 0.94], + [9, 0.95] + ], + "fallback": 1 + }, + "privileged_user_reaction": { + "cases": [ + [-1, 0.2], + [1, 1] + ], + "fallback": 0.95, + "negative_reaction_threshold": -9, + "positive_reaction_threshold": 4 + }, + "public_reactions_score": { + "cases": [ + [0, 0.3], + [1, 0.4], + [2, 0.45], + [3, 0.5], + [4, 0.55], + [5, 0.6], + [6, 0.61], + [7, 0.62], + [8, 0.7], + [9, 0.8], + [10, 0.85], + [11, 0.9], + [12, 0.95] + ], + "fallback": 1.0 + } + } +} diff --git a/config/field_test.yml b/config/field_test.yml index 61e214078..bb04ea311 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_20230918: + # NOTE: Required as we want only want to consider for conversion events that + # occurred on or after the given start_date. + started_at: 2023-09-18 + variants: + - 20230814-variant-b + - 20230918-variant-a + - 20230918-variant-b + - 20230918-variant-c + weights: + - 55 + - 15 + - 15 + - 15 + goals: + - user_creates_pageview + - user_creates_article_reaction + - user_creates_comment + - user_views_pages_on_at_least_two_different_days_within_a_week + - 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_views_pages_on_at_least_three_different_hours_within_a_day + - 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 feed_strategy_starting_20230814: # NOTE: Required as we want only want to consider for conversion events that # occurred on or after the given start_date. started_at: 2023-08-15 + ended_at: 2023-09-17 + winner: 20230814-variant-b variants: - 20230511-variant-b - 20230814-variant-a