Fix attr_accessors for LinearRegression