Matrix Slice Notation for a Sequence Window ()
The notation is used to select a sub-matrix or a slice from a larger matrix . This slice comprises a continuous block of elements, such as rows or columns, that begins at index and concludes at index . The variable typically represents the size of a context or window.

0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Sequence Slicing Notation for Last Elements
Matrix Slice Notation for a Sequence Window ()
A matrix is a rectangular array of numbers organized into rows and columns. Given this definition, which of the following correctly uses standard notation to represent a 2x3 matrix (2 rows and 3 columns) containing the integers from 1 to 6?
Concatenated Matrix Notation ()
Row Vector Notation ()
Matrix Construction
The following expression correctly uses standard notation to represent a 2x2 matrix: { {5, 6}, {7, 8} }
Context Window Slice Notation ()
Column Vector Representation
Vector Slice Notation for a Sequence Window ()
Matrix Slice Notation for a Sequence Window ()
A process is analyzing a sequence of data points,
[10, 20, 30, 40, 50, 60, 70, 80, 90, 100], which are indexed starting from 0. The process needs to select a window ofn=5consecutive elements. If the last element of the window is at indexi=7, which of the following sub-sequences represents the correct window of data?Debugging a Sequence Slicing Function
An algorithm processes a long sequence of data by examining a 'window' of
n=10consecutive elements at a time. If the algorithm is currently focused on the specific window of elements from index 90 to index 99 (inclusive), then the variableirepresenting the end-point of the current window would be 100.
Learn After
Key Matrix from a Sliding Window
Consider a matrix that contains 10 row vectors, indexed from 1 to 10 (i.e., ). The notation is used to select a sub-matrix by vertically stacking the row vectors from index to index , inclusive. Which of the following sub-matrices correctly represents ?
The notation is used to select a slice of row vectors from a larger matrix . This slice contains a total of ____ row vectors.
Extracting a Context Window from a Token Matrix