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
      13 of 102

      Match score

      Write match(taste, movie): how much you’ll enjoy a movie. taste says how much you like each genre (negative means you dislike it). movie says how much of each genre the movie has.

      You love action, dislike romance, don’t care about horror and like comedy. This movie has lots of action and a bit of romance and comedy. How much will you enjoy it?

      you likethe movie hasaction+23romance−11horror00comedy+11how much you’ll enjoy it0 of 4 genres in
      Your functionmatch(taste, movie)
      tastehow much you like each genre [action, romance, horror, comedy]e.g. [2, −1, 0, 1]
      moviehow much of each genre the movie hase.g. [1, 0, 0, 0]
      returnsone number: how much you'll enjoy it
      solution.pyLoading Python
      Sign in for an AI hint
      ← Two thermometersScore every movie at once →