diff options
author | Liang-Chi Hsieh <viirya@gmail.com> | 2015-01-27 01:29:14 -0800 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-01-27 01:29:14 -0800 |
commit | 7b0ed797958a91cda73baa7aa49ce66bfcb6b64b (patch) | |
tree | 988570edd6b652ea6977af96135b4dd5f9c6d43f /LICENSE | |
parent | d6894b1c5314c751cfdaf78005b99b2104e6e4d1 (diff) | |
download | spark-7b0ed797958a91cda73baa7aa49ce66bfcb6b64b.tar.gz spark-7b0ed797958a91cda73baa7aa49ce66bfcb6b64b.tar.bz2 spark-7b0ed797958a91cda73baa7aa49ce66bfcb6b64b.zip |
[SPARK-5419][Mllib] Fix the logic in Vectors.sqdist
The current implementation in Vectors.sqdist is not efficient because of allocating temp arrays. There is also a bug in the code `v1.indices.length / v1.size < 0.5`. This pr fixes the bug and refactors sqdist without allocating new arrays.
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes #4217 from viirya/fix_sqdist and squashes the following commits:
e8b0b3d [Liang-Chi Hsieh] For review comments.
314c424 [Liang-Chi Hsieh] Fix sqdist bug.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions