GitHub user hhbyyh opened a pull request:
https://github.com/apache/spark/pull/10102
[SPARK-11605] [MLlib] ML 1.6 QA: API: Java compatibility, docs
jira: https://issues.apache.org/jira/browse/SPARK-11605
Check Java compatibility for MLlib for this release.
fix:
1. `StreamingTest.registerStream` needs java friendly interface.
2. `GradientBoostedTreesModel.computeInitialPredictionAndError` and
`GradientBoostedTreesModel.updatePredictionError` has java compatibility issue.
Mark them as `developerAPI`.
TBD:
`org.apache.spark.mllib.classification.LogisticRegressionModel`
`public scala.Option<java.lang.Object> getThreshold();` has wrong return
type for Java invocation.
`SVMModel` has the similar issue.
Yet adding a `scala.Option<java.util.Double> getThreshold()` would result
in an overloading error due to the same function signature. And adding a new
function with different name seems to be not necessary. Suggest as no fix.
cc @jkbradley @feynmanliang
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hhbyyh/spark javaAPI
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10102.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 #10102
----
commit 5550a9723c391ee2d908059b1a36c6c05b327b78
Author: Yuhao Yang <[email protected]>
Date: 2015-12-02T10:03:18Z
fix some java compatiblity issues
----
---
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]