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

      Confident or cautious

      A language model has written The weather today is and scores the next word: sunny 2, cloudy 1, snowy −1. Write chances(scores, temperature): turn the scores into chances, where temperature sets how bold the model is. Cold: confident, it almost always picks its top word. Hot: cautious, it hedges and spreads its chances out. Temperature 1 is the model as it is.

      scores
      sunnycloudysnowy
      21−1
      temperature
      1
      solution.pyLoading Python
      ← Yes or no chancesToo big for the computer →