In settings where agents collect large amounts of interaction data but only a small subset has ground-truth action labels, an inverse dynamics model (IDM) can be used to assign pseudo-labels to the unlabeled transitions. An IDM takes a pair of consecutive states (s_t, s_{t+1}) and predicts the action a_t that most likely caused the transition.
Your task is to implement a simple linear inverse dynamics classifier:
Return the list of predicted integer labels for the unlabeled transitions, in the same order they were provided.