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
      44 of 102

      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.

      A model gives each word of a text the chance it saw that word coming, and a text’s chance is those multiplied. Fine for a sentence. Then two 2,000-word essays are read side by side, and the computer runs out of zeros.

      A model gives each word a chance. A text’s chance is its words’ chances multiplied.the0.6cat0.05sat0.3down0.4the sentence’s chance:two essays of 2000 words · zeros after the pointroom for 323 →essay Aeach word about 0.3essay Beach word about 0.25essay A: 0 · essay B: 0 → a tie, however different they werea score for each essay that still tells them apart?
      Your functionsentence_score(chances)
      chancesthe chance of each word in the sentence, in ordere.g. [0.5, 0.5, 0.5]
      returnsone score: a likelier sentence scores higher
      solution.pyLoading Python
      Sign in for an AI hint
      ← Score a forecasterHow confused is the model? →