Spooky Sale: 10% off Premium yearly · $118.80 for the first year · until Nov 6Get it

Deep-ML
Learn
Problems1,200+ hands-on ML problemsLearning PathA guided route through the fundamentalsLabsInteractive labs on real techniquesProjectsBuild a GPT, an RL agent, CUDA kernelsCollectionsCurated problem sets and videosMathPen-and-paper math for MLIntuitionInvent the idea behind the formula yourselfPlaylistsYour own problem lists, shareableStudy AssistantAn AI teacher that knows your progress
Interview Prep
Compete
ContestsFresh problem sets, ranked liveLeaderboardWhere you stand, globallyBuddiesSolve with a friend: streaks, a weekly board, chat
Discuss
Deep-Path
Premium
      Intuition
      96 of 102

      Which answer do people prefer?

      A reward model reads two answers to the same question and gives each a score: higher means better, and scores can be any size, even negative. Write chance_first_wins(score_first, score_second): the chance a person shown both picks the first.

      A reward model scores two answers to the same question, and 100 people are shown both. With equal scores it’s a coin flip; with one score far above the other nearly everyone picks it. For −1 against −3, how many pick the first?

      A reward model scored the first answer 2 and the second 2. 100 people are shown both.first answerscore 20 pickedsecond answerscore 20 picked100 people shown bothchance_first_wins(−1, −3) → ?
      Your functionchance_first_wins(score_first, score_second)
      score_firstthe reward model's scores for two answerse.g. 3
      score_secondthe reward model's scores for two answerse.g. 3
      returnsthe chance a person picks the first answer
      solution.pyLoading Python
      Sign in for an AI hint
      ← Ask the wrong crowdGrade on a curve →