Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/11560#discussion_r55356255
--- Diff:
mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java ---
@@ -48,14 +47,14 @@ public void tearDown() {
sc = null;
}
- void validatePrediction(
+ private void validatePrediction(
MatrixFactorizationModel model,
int users,
int products,
- DoubleMatrix trueRatings,
+ double[] trueRatings,
--- End diff --
For the record, this is not a `DenseMatrix<Double>` because the Scala
method this relies on returns a `DenseMatrix<Object>` as far as Java is
concerned. It ended up being easier just to make this private test method pass
around an array, I think.
---
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]