GitHub user tillrohrmann opened a pull request: https://github.com/apache/flink/pull/723
[FLINK-2053] [ml] Adds automatic preregistration of ML types Adds automatic type registration of flink-ml types. This is done by providing a type registration method `FlinkMLTools.registerFlinkMLTypes` which is called from within the `fit`, `predict` and `transform` methods of the `Estimator`, `Predictor` and `Transformer`. Adds de-duplication of registered types at the `ExecutionConfig` by using `LinkedHashSet` which maintains the insertion order. Fixes bug in `BreezeSparseVector` to `FlinkSparseVector` conversion. `BreezeSparseVector` is not always compacted to its maximum and thus leaves some array entries unused. Consequently, only parts of the data arrays should be given to the `FlinkSparseVector`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tillrohrmann/flink preregisterMLTypes Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/723.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #723 ---- commit 483caef1276c80f60bcc6c97836c8008d62ec72b Author: Till Rohrmann <trohrm...@apache.org> Date: 2015-05-25T22:35:05Z [FLINK-2053] [ml] Adds automatic type registration of flink-ml types. Adds de-duplication of registered types at ExecutionConfig. Fixes bug in Breeze SparseVector to Flink SparseVector conversion. ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---