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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to