Online Learning of Gait Models