-
- Downloads
[SPARK-14635][ML] Documentation and Examples for TF-IDF only refer to HashingTF
## What changes were proposed in this pull request? Currently, the docs for TF-IDF only refer to using HashingTF with IDF. However, CountVectorizer can also be used. We should probably amend the user guide and examples to show this. ## How was this patch tested? unit tests and doc generation Author: Yuhao Yang <hhbyyh@gmail.com> Closes #12454 from hhbyyh/tfdoc.
Showing
- docs/ml-features.md 12 additions, 3 deletionsdocs/ml-features.md
- examples/src/main/java/org/apache/spark/examples/ml/JavaTfIdfExample.java 2 additions, 0 deletions...n/java/org/apache/spark/examples/ml/JavaTfIdfExample.java
- examples/src/main/python/ml/tf_idf_example.py 2 additions, 0 deletionsexamples/src/main/python/ml/tf_idf_example.py
- examples/src/main/scala/org/apache/spark/examples/ml/TfIdfExample.scala 2 additions, 0 deletions...ain/scala/org/apache/spark/examples/ml/TfIdfExample.scala
Please register or sign in to comment