Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/5310#discussion_r27574890
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala ---
@@ -434,8 +434,39 @@ private[python] class PythonMLLibAPI extends
Serializable {
new Normalizer(p).transform(rdd)
}
+ private[python] class StandardScalerModelWrapper(model:
StandardScalerModel)
+ extends VectorTransformer {
+ /**
+ * Wrapper of StandardScalerModel transform method
+ * @param vector
+ * @return
+ */
+ def transform(vector: Vector): Vector = model.transform(vector)
+
+ /**
+ * Setter of the boolean which decides
+ * whether it uses mean or not
+ * @param withMean
+ * @return
+ */
+ def setWithMean(withMean: Boolean): this.type = {
+ model.setWithMean(withMean)
+ this
+ }
+
+ /**
+ * Setter of the boolean which decides
+ * whether it uses mean or not
--- End diff --
uses mean or not -> uses std or not?
---
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]