1. Learn
  2. /
  3. Courses
  4. /
  5. Reinforcement Learning from Human Feedback (RLHF)

Connected

Exercise

Comparing slogans for a gym campaign

You're working with an advertising agency to evaluate two models that generate slogans for a gym campaign. Each model has produced a list of slogans with corresponding effectiveness scores. Your task is to compare the slogans generated by each model, determine which model is better overall, and calculate the success rate of each model.

The slogans have been preloaded as slogans_X and slogans_Y, lists of tuples containing the slogan and its score.

Instructions

100 XP
  • For each pair of slogans, if the score of slogan X is higher, increment wins_X by 1, while if the score of slogan Y is higher, increment wins_Y by 1.