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

      Smooth the noise

      A sensor’s readings jump around. Keep a smoothed value that updates with every new reading. Write smooth(previous, reading, keep): the new smoothed value, where previous is the smoothed value so far and keep (0 to 1) is how much of it to hold on to.

      readings from a noisy thermometer
      212519232024
      solution.pyLoading Python
      ← Shrink toward zeroThe ball keeps rolling →