diff options
author | zero323 <matthew.szymkiewicz@gmail.com> | 2015-10-16 15:53:26 -0700 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2015-10-16 15:53:26 -0700 |
commit | 8ac71d62d976bbfd0159cac6816dd8fa580ae1cb (patch) | |
tree | 18740525525d04abee55c3173956dd5970365a23 /R/DOCUMENTATION.md | |
parent | 10046ea76cf8f0d08fe7ef548e4dbec69d9c73b8 (diff) | |
download | spark-8ac71d62d976bbfd0159cac6816dd8fa580ae1cb.tar.gz spark-8ac71d62d976bbfd0159cac6816dd8fa580ae1cb.tar.bz2 spark-8ac71d62d976bbfd0159cac6816dd8fa580ae1cb.zip |
[SPARK-11084] [ML] [PYTHON] Check if index can contain non-zero value before binary search
At this moment `SparseVector.__getitem__` executes `np.searchsorted` first and checks if result is in an expected range after that. It is possible to check if index can contain non-zero value before executing `np.searchsorted`.
Author: zero323 <matthew.szymkiewicz@gmail.com>
Closes #9098 from zero323/sparse_vector_getitem_improved.
Diffstat (limited to 'R/DOCUMENTATION.md')
0 files changed, 0 insertions, 0 deletions