felixcheung commented on a change in pull request #24939: [SPARK-18569][ML][R] 
Support RFormula arithmetic, I() and spark functions
URL: https://github.com/apache/spark/pull/24939#discussion_r304240770
 
 

 ##########
 File path: mllib/src/main/scala/org/apache/spark/ml/feature/RFormula.scala
 ##########
 @@ -614,3 +652,80 @@ private object VectorAttributeRewriter extends 
MLReadable[VectorAttributeRewrite
     }
   }
 }
+
+/**
+ * Utility transformer for adding expressions to dataframe using `expr` spark 
function
+ *
+ * @param exprsToSelect set of string expressions to be added as a column to 
the dataframe.
+ *                      The name of the columns will be identical to the 
expression
+ */
+private class ExprSelector(
 
 Review comment:
   if the pipeline model is persisted the "hidden" stage will show up, I think? 
it's good intention for the abstract but probably best not to add to the 
confusion there also since the code isn't too complicated. if sharing the logic 
is desired later we could refactor it but likely not as a private stage anyway.
   

----------------------------------------------------------------
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