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

    https://github.com/apache/spark/pull/15874#discussion_r89175497
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/MinHashLSH.scala 
---
    @@ -31,36 +31,38 @@ import org.apache.spark.sql.types.StructType
     /**
      * :: Experimental ::
      *
    - * Model produced by [[MinHash]], where multiple hash functions are 
stored. Each hash function is
    - * a perfect hash function:
    - *    `h_i(x) = (x * k_i mod prime) mod numEntries`
    - * where `k_i` is the i-th coefficient, and both `x` and `k_i` are from 
`Z_prime^*`
    + * Model produced by [[MinHashLSH]], where multiple hash functions are 
stored. Each hash function is
    + * picked from a hash family for a specific set `S` with cardinality equal 
to `numEntries`:
    + *    `h_i(x) = ((x \cdot a_i + b_i) \mod prime) \mod numEntries`
    --- End diff --
    
    Fixed


---
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