Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/5373#discussion_r27788906
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/feature/HashingTF.scala ---
@@ -47,7 +47,7 @@ class HashingTF(val numFeatures: Int) extends
Serializable {
/**
* Transforms the input document into a sparse term frequency vector.
*/
- def transform(document: Iterable[_]): Vector = {
+ def transform(document: Iterable[_]): SparseVector = {
--- End diff --
A `SparseVector` is a `Vector`. This promises the more specific subclass,
but is it necessary?
---
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]