Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/8451#discussion_r37954720
--- Diff:
mllib/src/test/java/org/apache/spark/mllib/recommendation/JavaALSSuite.java ---
@@ -56,8 +56,7 @@ void validatePrediction(
double matchThreshold,
boolean implicitPrefs,
DoubleMatrix truePrefs) {
- List<Tuple2<Integer, Integer>> localUsersProducts =
- Lists.newArrayListWithCapacity(users * products);
+ List<Tuple2<Integer, Integer>> localUsersProducts = new ArrayList();
--- End diff --
If you have to make any other changes on this PR, you could change one tiny
thing here: preserve passing `users * products` as the initial capacity to this
constructor.
---
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]