g varies only along span(B)
span(B)
Xi (predictors)
Yi = g(B⊤Xi)
∇g(x) ∈ span(B)