Chapter 262 / 8
Correctness, Debugging, and Performance Experiments
Write a check that verifies labels are correctly shifted by one relative to inputs
Easy
Target interface
check_label_shift(input_ids, labels, ignore_index=-100)Complete the starter code in the editor. Any correct approach is accepted.
Hints0 / 2
Reference solution
Your own code stays in the editor.