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

      Don’t wait for the end

      You’re learning what each square of a board game is worth: all the rewards still to come from it, counted as in “A reward now or later”. You just stepped off a square: you got reward, and you guess the square you landed on is worth guess_next. Write update(guess_here, reward, guess_next, patience, rate): your new guess for the square you just left, without waiting for the game to end. rate (0 to 1) is how far one step may move a guess.

      guess_here
      4
      reward
      1
      guess_next
      10
      patience
      0.9
      rate
      0.1
      solution.pyLoading Python
      ← A reward now or laterTry the unknown →