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

      Try the unknown

      A row of slot machines, each paying 1 (a win) or 0 per play. You know each machine’s average_wins so far, how many plays it has had, and total_plays across all of them. Write pick_machine(average_wins, plays, total_plays): which machine to play next, as its position (0 for the first), so that over many plays you win as much as you can.

      solution.pyLoading Python
      ← Don’t wait for the endAsk the wrong crowd →