GitHub user holdenk opened a pull request:
https://github.com/apache/spark/pull/11112
[SPARK-13201][SPARK-13200] Deprecation warning cleanups: KMeans &
MFDataGenerator
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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/holdenk/spark
SPARK-13201-non-deprecated-setRuns-SPARK-mathround-integer
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11112.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11112
----
commit ec2e8f723b1bb9cbb603c0c85b97a2b89dc7c066
Author: Holden Karau <[email protected]>
Date: 2016-02-07T08:07:15Z
Remove rounding on integer in MFDataGenerator
commit 5418c18f1574dcd11812f8101cc5bcf477394f54
Author: Holden Karau <[email protected]>
Date: 2016-02-07T08:08:12Z
remove type
commit 4deb2491c2af7710afce4f3ffb1935e214e0f74e
Author: Holden Karau <[email protected]>
Date: 2016-02-08T06:57:55Z
Add an internal version of setRuns for the KMeans MLLib implementation 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
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]