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
      48 of 88

      Pick the sick one

      A blood test gives each patient a score: higher means more likely sick. Write ranking_score(scores, sick): how good the test is at ranking sick patients above healthy ones, before anyone chooses a cutoff. sick[i] is 1 if patient i is sick and 0 if healthy. 1 means perfect, 0.5 a coin flip, 0 exactly backwards.

      four patients
      AnaBenCyDi
      scores0.10.40.350.8
      sick0011
      solution.pyLoading Python
      ← Grade a spam filterAt least one right →