Learn Before
Debugging a Sliding Window Algorithm
Using the formula for calculating the starting index of a context window, explain mathematically why the algorithm described in the case study is failing. What is the specific calculated starting index that causes the error?
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
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Context Window Vector Set Notation ()
An algorithm processes a sequence of data (indexed from 0) by looking at a fixed-size window of items at a time. If the algorithm is currently focused on the item at index 12, and the window size is 7, what is the starting index of the window?
Determining Context Window Size
Debugging a Sliding Window Algorithm