sliding_window_var bad_epochs accepts extra arguments