-
- Downloads
[SPARK-8200] [MLLIB] Check for empty RDDs in StreamingLinearAlgorithm
Test cases for both StreamingLinearRegression and StreamingLogisticRegression, and code fix. Edit: This contribution is my original work and I license the work to the project under the project's open source license. Author: Paavo <pparkkin@gmail.com> Closes #6713 from pparkkin/streamingmodel-empty-rdd and squashes the following commits: ff5cd78 [Paavo] Update strings to use interpolation. db234cf [Paavo] Use !rdd.isEmpty. 54ad89e [Paavo] Test case for empty stream. 393e36f [Paavo] Ignore empty RDDs. 0bfc365 [Paavo] Test case for empty stream.
Showing
- mllib/src/main/scala/org/apache/spark/mllib/regression/StreamingLinearAlgorithm.scala 8 additions, 6 deletions...che/spark/mllib/regression/StreamingLinearAlgorithm.scala
- mllib/src/test/scala/org/apache/spark/mllib/classification/StreamingLogisticRegressionSuite.scala 17 additions, 0 deletions...lib/classification/StreamingLogisticRegressionSuite.scala
- mllib/src/test/scala/org/apache/spark/mllib/regression/StreamingLinearRegressionSuite.scala 18 additions, 0 deletions...ark/mllib/regression/StreamingLinearRegressionSuite.scala
Loading
Please register or sign in to comment