One thing you could consider doing is to have RidgeRegression extend LinearRegression and just set the updater in the constructor. I guess you'll need to make the LinearRegression constructor `protected` for that.