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

      Grade a spam filter

      A spam filter is graded on two numbers. Precision: of the emails it flagged, the share that really are spam. Recall: of all the spam, the share it flagged. Write filter_score(precision, recall): one number for how good the filter is, from 0 (useless) to 1 (perfect).

      a filter
      precisionrecall
      0.90.6
      solution.pyLoading Python
      ← Better than guessing the average?Pick the sick one →