Research Engineering & Debugging · Problem 2 of 8
Write a check that verifies labels are correctly shifted by one relative to inputs.
Implement the function/class skeleton in the editor. Any correct approach is accepted.
def check_label_shift(input_ids, labels, ignore_index=-100):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Write a check that verifies labels are correctly shifted by one relative to inputs.
Implement the function/class skeleton in the editor. Any correct approach is accepted.