artemmalykh commented on a change in pull request #5767: [ML] IGNITE-10573:
Consistent API for Ensemble training
URL: https://github.com/apache/ignite/pull/5767#discussion_r247885961
##########
File path: modules/ml/src/main/java/org/apache/ignite/ml/util/Utils.java
##########
@@ -130,4 +132,50 @@
Spliterators.spliteratorUnknownSize(iter, Spliterator.ORDERED),
false);
}
+
+ /**
+ * Zips two streams (in functional sense of zipping) i.e. returns stream
consisting
+ * of results of applying zipper to corresponding entries of two stream.
+ *
+ * @param a First stream.
+ * @param b Second stream.
+ * @param zipper Bi-function combining two streams.
+ * @param <A> Type of first stream entries.
+ * @param <B> Type of secong stream entries.
+ * @param <C> Type of zipper output.
+ * @return Two streams zipped together.
+ */
+ public static<A, B, C> Stream<C> zip(Stream<? extends A> a,
Review comment:
Removed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services