zhipeng93 opened a new pull request, #141:
URL: https://github.com/apache/flink-ml/pull/141
This PR addes Transformer for HashingTF in Flink ML. The public interface is
consistent with HashingTF in Spark ML [1].
Note that it is unknown how to convert the following java code to python for
now, some python unit tests are removed and python example code of HashingTF is
not added.
```
StreamExecutionEnvironment env = ...;
StreamTableEnvironment tEnv = ...;
List<Row> INPUT = Arrays.asList(
Row.of(Arrays.asList(1, 2.5, false, (byte) 1, (short)
256)),
Row.of(Arrays.asList("HashingTFTest,", 2.5f, null)));
inputDataTable = tEnv.fromDataStream(env.fromCollection(INPUT)).as("input");
```
[1]
https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.ml.feature.HashingTF.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]