aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorzero323 <matthew.szymkiewicz@gmail.com>2015-10-16 15:53:26 -0700
committerJoseph K. Bradley <joseph@databricks.com>2015-10-16 15:53:26 -0700
commit8ac71d62d976bbfd0159cac6816dd8fa580ae1cb (patch)
tree18740525525d04abee55c3173956dd5970365a23 /external
parent10046ea76cf8f0d08fe7ef548e4dbec69d9c73b8 (diff)
downloadspark-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 'external')
0 files changed, 0 insertions, 0 deletions