Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-13201][SPARK-13200] Deprecation warning cleanups: KMeans & MFDataGenerator #11112

Conversation

holdenk
Copy link
Contributor

@holdenk holdenk commented Feb 8, 2016

KMeans:
Make a private non-deprecated version of setRuns API so that we can call it from the PythonAPI without deprecation warnings in our own build. Also use it internally when being called from train. Add a logWarning for non-1 values

MFDataGenerator:
Apparently we are calling round on an integer which now in Scala 2.11 results in a warning (it didn't make any sense before either). Figure out if this is a mistake we can just remove or if we got the types wrong somewhere.

I put these two together since they are both deprecation fixes in MLlib and pretty small, but I can split them up if we would prefer it that way.

…n and have it used internally and when called from python. Also add a log error message that the number of runs is deprecated since people could be setting the number of runs through the train function as well
@srowen
Copy link
Member

srowen commented Feb 8, 2016

Yes, seems OK to me.

@SparkQA
Copy link

SparkQA commented Feb 8, 2016

Test build #50913 has finished for PR 11112 at commit 4deb249.

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

@srowen
Copy link
Member

srowen commented Feb 9, 2016

merged to master

@asfgit asfgit closed this in ce83fe9 Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants