Adapting on the fly to test time distribution shift