Github user yanboliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/15851#discussion_r87579645
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/r/GBTClassificationWrapper.scala ---
@@ -51,6 +51,7 @@ private[r] class GBTClassifierWrapper private (
pipeline.transform(dataset)
.drop(PREDICTED_LABEL_INDEX_COL)
.drop(gbtcModel.getFeaturesCol)
+ .drop(gbtcModel.getLabelCol)
--- End diff --
For all classification algorithms, we do ```forceIndexLabel``` to generate
new label column from the original label column, so we need to drop the
generated label to make the output more clear to be understand when making
prediction.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]