[FLINK-903] Rebase ML API example

I rebase the ML API example. Welcome for advice!