Github user Yunni commented on the issue:
https://github.com/apache/spark/pull/16965
@merlintang Not exactly. Each row will explode to L rows, where L is the
number of hash tables. Like the following:
```
+--------------------+-----+--------------------+
| datasetA|entry| hashValue|
+--------------------+-----+--------------------+
|[[-10.0,-10.0],Wr...| 0|[-2.0,-2.0,3.0,-2.0]|
|[[-10.0,-10.0],Wr...| 1|[0.0,-3.0,-1.0,-2.0]|
|[[-10.0,-9.0],Wra...| 0|[-2.0,-2.0,3.0,-2.0]|
|[[-10.0,-9.0],Wra...| 1|[0.0,-3.0,-1.0,-2.0]|
|[[-10.0,-8.0],Wra...| 0|[-2.0,-2.0,3.0,-1.0]|
|[[-10.0,-8.0],Wra...| 1| [0.0,-3.0,0.0,-2.0]|
```
You can look at the code here:
https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/feature/LSH.scala#L238
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]