Github user mengxr commented on a diff in the pull request: https://github.com/apache/spark/pull/20285#discussion_r163377373 --- Diff: docs/ml-features.md --- @@ -1283,6 +1283,56 @@ for more details on the API. </div> </div> +## VectorSizeHint + +It can sometimes be useful to explicitly specify the size of the vectors a column of +`VectorType`. For example, `VectorAssembler` uses size information from its input columns to +produce size information and metadata for its output column. While in some cases this information +can be obtained by inspecting the contents of the column, in a streaming dataframe the contents are +not available until the stream is started. `VectorSizeHint` allows a user to explicitly specify the +vector size for a column so that `VectorAssembler`, or other transformers that might +need to know vector size, can use that column as an input. + +To use `VectorSizeHint` a user must set the `inputCol` and `size` parameters. Applying this --- End diff -- `a user` is correct because `users`'s pronunciation starts with `y`
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org