-
- Downloads
[SPARK-16965][MLLIB][PYSPARK] Fix bound checking for SparseVector.
## What changes were proposed in this pull request? 1. In scala, add negative low bound checking and put all the low/upper bound checking in one place 2. In python, add low/upper bound checking of indices. ## How was this patch tested? unit test added Author: Jeff Zhang <zjffdu@apache.org> Closes #14555 from zjffdu/SPARK-16965.
Showing
- mllib-local/src/main/scala/org/apache/spark/ml/linalg/Vectors.scala 19 additions, 15 deletions...l/src/main/scala/org/apache/spark/ml/linalg/Vectors.scala
- mllib-local/src/test/scala/org/apache/spark/ml/linalg/VectorsSuite.scala 6 additions, 0 deletions.../test/scala/org/apache/spark/ml/linalg/VectorsSuite.scala
- python/pyspark/ml/linalg/__init__.py 15 additions, 0 deletionspython/pyspark/ml/linalg/__init__.py
Loading
Please register or sign in to comment