SPARK-1462: Examples of ML algorithms are using deprecated APIs