Skip to content

Conversation

@datumbox
Copy link
Contributor

@datumbox datumbox commented Mar 1, 2017

What changes were proposed in this pull request?

In the ALS method the default values of regParam do not match within the same file (lines 224 and 714). In one place we set it to 1.0 and in the other to 0.1.

I changed the one of train() method to 0.1 and now it matches the default value which is visible to Spark users. The method is marked with DeveloperApi so it should not affect the users. Whenever we use the particular method we provide all parameters, so the default does not matter. Only exception is the unit-tests on ALSSuite but the change does not break them.

Note: This PR should get the award of the laziest commit in Spark history. Originally I wanted to correct this on another PR but @MLnick suggested to create a separate PR & ticket. If you think this change is too insignificant/minor, you are probably right, so feel free to reject and close this. :)

How was this patch tested?

Unit-tests

@MLnick
Copy link
Contributor

MLnick commented Mar 1, 2017

ok to test

@MLnick
Copy link
Contributor

MLnick commented Mar 1, 2017

I'm not sure if this will break MiMa - let's see

Copy link
Contributor

@imatiach-msft imatiach-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave a comment

@SparkQA
Copy link

SparkQA commented Mar 1, 2017

Test build #3587 has finished for PR 17121 at commit a27ae4e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@MLnick
Copy link
Contributor

MLnick commented Mar 1, 2017

@datumbox LGTM, thanks. Merged to master.

By the way - this is a tiny change and sometimes we don't bother, and if we do it it can have a [MINOR] tag in the PR title. Having said that there's been many cases before where supposedly minor changes break things inadvertently and then it's more difficult to track as there is no JIRA etc. I tend to err on the side of caution :)

@asfgit asfgit closed this in 417140e Mar 1, 2017
@datumbox
Copy link
Contributor Author

datumbox commented Mar 1, 2017

@MLnick Sounds good to me 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.

5 participants