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

      Too small to store

      A language model read a sentence and gave each word the chance it saw that word coming. Write sentence_score(chances): one score for the whole sentence. A likelier sentence must score higher, and it has to work for sentences of any length.

      chances = [0.6, 0.05, 0.3, 0.4]: the chance of each word, in order
      the
      60%
      cat
      5%
      sat
      30%
      down
      40%
      solution.pyLoading Python
      ← Score a forecasterHow confused is the model? →