Skip to content

Conversation

@shkdee
Copy link

@shkdee shkdee commented Apr 15, 2016

What changes were proposed in this pull request?

In the (rare) case where yStd is 0 in LinearRegression, parameters are not copied immediately to the created LinearRegressionModel instance, but they should (as in all other cases), because now the default column names are used in and returned by model.findSummaryModelAndPredictionCol(), which leads to schema validation errors.

How was this patch tested?

some simple manual tests

In the (rare) case where yStd is 0 in LinearRegression, parameters are not copied immediately to the created LinearRegressionModel instance, but they should (as in all other cases), because now the default column names are used in and returned by model.findSummaryModelAndPredictionCol(), which leads to schema validation errors.
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@yanboliang
Copy link
Contributor

@shkdee This PR makes sense. Could you create a JIRA and add test case for this issue?

@shkdee shkdee changed the title [BUG] LinearRegressionModel use default parameters if yStd is 0 [SPARK-14662] LinearRegressionModel use default parameters if yStd is 0 Apr 15, 2016
@yanboliang
Copy link
Contributor

@shkdee Could you add test case for this issue? Thanks.

@jkbradley
Copy link
Member

It looks like this was fixed in SPARK-15339, so can you please close this issue? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants