srowen commented on a change in pull request #26596: [SPARK-29959][ML][PYSPARK]
Summarizer support more metrics
URL: https://github.com/apache/spark/pull/26596#discussion_r352292215
##########
File path: python/pyspark/ml/stat.py
##########
@@ -323,12 +339,17 @@ def metrics(*metrics):
The following metrics are accepted (case sensitive):
- mean: a vector that contains the coefficient-wise mean.
+ - sum: a vector that contains the coefficient-wise sum.
- variance: a vector tha contains the coefficient-wise variance.
+ - std: a vector tha contains the coefficient-wise standard deviation.
- count: the count of all vectors seen.
+ - weightSum: the sum of all weights seen.
Review comment:
Is this a supported metric? I don't see it in the scala code above. Same
with other new values below.
----------------------------------------------------------------
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]