zhengruifeng commented on issue #24963: [SPARK-28159][ML] Make the transform natively in ml framework to avoid extra conversion URL: https://github.com/apache/spark/pull/24963#issuecomment-507506136 @srowen In this PR, I found that it will be more convenient (like `IDF`/`ElementwiseProduct`/`StandardScaler`) if there is some methods in linalg like: ``` def mapActive(f: (Int, Double) => Double): Vector return a new vector whose values are computed by orignial vector and function f, and f is only applied on active elements. def updateActive(f: (Int, Double) => Double): Unit like mapActive but update the values in-place ``` How do you think about this?
---------------------------------------------------------------- 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]
