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

      A small change to a big matrix

      Fine-tuning a model changed one of its big matrices of weights. Storing the whole change costs as much as the matrix itself, but this change is special: every row is the same pattern, scaled by some amount. Write compress(change): return two short lists, [column, row], that rebuild it: change[i][j] = column[i] * row[j] for every i and j.

      a change: every row is [1, 2, 3] times some amount
      0123
      1246
      2−1−2−3
      solution.pyLoading Python
      ← Find your twinA reward now or later →