[
https://issues.apache.org/jira/browse/SPARK-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14261609#comment-14261609
]
Apache Spark commented on SPARK-4942:
-------------------------------------
User 'jkbradley' has created a pull request for this issue:
https://github.com/apache/spark/pull/3637
> ML Transformers should allow output cols to be turned on,off
> ------------------------------------------------------------
>
> Key: SPARK-4942
> URL: https://issues.apache.org/jira/browse/SPARK-4942
> Project: Spark
> Issue Type: Improvement
> Components: ML
> Affects Versions: 1.2.0
> Reporter: Joseph K. Bradley
> Assignee: Joseph K. Bradley
>
> ML Transformers will eventually output multiple columns (e.g., predicted
> labels, predicted confidences, probabilities, etc.). These columns should be
> optional.
> Benefits:
> * more efficient (though Spark SQL may be able to optimize)
> * cleaner column namespace if people do not want all output columns
> Proposal:
> * If a column name parameter (e.g., predictionCol) is an empty string, then
> do not output that column.
> This will require updating validateAndTransformSchema() to ignore empty
> output column names in addition to updating transform().
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]