Implement a function that evaluates a simple linear autoregressive model under two different rollout strategies and compares their prediction quality.
The model computes predictions at each time step as:
prediction = W @ input + b
There are two evaluation modes:
Teacher Forcing: The model receives the actual ground truth from the previous time step as input, preventing prediction errors from propagating to future steps.
Free Running (Autoregressive): The model receives its own prediction from the previous time step as input, mimicking real inference behavior where ground truth is unavailable.
For both modes, the input at the first time step (t=0) is the provided initial vector x0.
Given:
Return a tuple (tf_preds, fr_preds, tf_mse, fr_mse) containing:
MSE is computed as the mean of all squared element-wise differences between predictions and targets.