Text this: Fast and robust invariant generalized linear models