Github user Yunni commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15874#discussion_r88128341
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/MinHashLSH.scala 
---
    @@ -74,9 +72,12 @@ class MinHashModel private[ml] (
       }
     
       @Since("2.1.0")
    -  override protected[ml] def hashDistance(x: Vector, y: Vector): Double = {
    +  override protected[ml] def hashDistance(x: Seq[Vector], y: Seq[Vector]): 
Double = {
         // Since it's generated by hashing, it will be a pair of dense vectors.
    -    x.toDense.values.zip(y.toDense.values).map(pair => math.abs(pair._1 - 
pair._2)).min
    +    // TODO: This hashDistance function is controversial. Requires more 
discussion.
    --- End diff --
    
    JIRA opened and linked


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to