Builds the regression model.
Builds the regression model.
Finds the maximum magnitude for the label and features.
Finds the maximum magnitude for the label and features.
Builds a model with Apache Commons Math and returns (weights, intercept, r-squared)
Builds a model with MLLib and returns (weights, intercept, r-squared)
Regression companion object.