Ruifeng Zheng created SPARK-60237:
-------------------------------------

             Summary: Use OpenHashSet for binary HashingTF
                 Key: SPARK-60237
                 URL: https://issues.apache.org/jira/browse/SPARK-60237
             Project: Spark
          Issue Type: Sub-task
          Components: ML
    Affects Versions: 5.0.0
            Reporter: Ruifeng Zheng


Binary HashingTF only needs to track distinct feature indices. Use 
OpenHashSet[Int], sort the resulting indices, and construct a sparse vector 
with 1.0 values. This is implemented in 
https://github.com/apache/spark/pull/59461.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to