Chapter 252 / 8
Research Engineering & Debugging
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)Implement the function/class skeleton in the editor. Any correct approach is accepted.
Hints0 / 2
Reference solution
Your own code stays in the editor.