You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/08/13 07:42:53 UTC

[GitHub] [spark] zhengruifeng opened a new pull request #25428: [SPARK-11215][ML][FollowUp] update the examples and suites using new api

zhengruifeng opened a new pull request #25428: [SPARK-11215][ML][FollowUp] update the examples and suites using new api
URL: https://github.com/apache/spark/pull/25428
 
 
   ## What changes were proposed in this pull request?
   since method `labels` is already deprecated, we should update the examples and suites to turn off warings when compiling spark:
   ```
   [warn] /Users/zrf/Dev/OpenSource/spark/examples/src/main/scala/org/apache/spark/examples/ml/DecisionTreeClassificationExample.scala:65: method labels in class StringIndexerModel is deprecated (since 3.0.0): `labels` is deprecated and will be removed in 3.1.0. Use `labelsArray` instead.
   [warn]       .setLabels(labelIndexer.labels)
   [warn]                               ^
   [warn] /Users/zrf/Dev/OpenSource/spark/examples/src/main/scala/org/apache/spark/examples/ml/GradientBoostedTreeClassifierExample.scala:68: method labels in class StringIndexerModel is deprecated (since 3.0.0): `labels` is deprecated and will be removed in 3.1.0. Use `labelsArray` instead.
   [warn]       .setLabels(labelIndexer.labels)
   [warn]                               ^
   ```
   
   ## How was this patch tested?
   existing suites

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org