GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/20627
[SPARK-23217][ML][PYTHON] Add distanceMeasure param to ClusteringEvaluator
Python API
## What changes were proposed in this pull request?
The PR adds the `distanceMeasure` param to ClusteringEvaluator in the
Python API. This allows the user to specify `cosine` as distance measure in
addition to the default `squaredEuclidean`.
## How was this patch tested?
added UT
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgaido91/spark SPARK-23217_python
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20627.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20627
----
commit 8fe8efaaf0202f804e80b36ec11b43d5aa34d511
Author: Marco Gaido <marcogaido91@...>
Date: 2018-02-16T09:24:45Z
[SPARK-23217][ML][PYTHON] Add distanceMeasure param to ClusteringEvaluator
Python API
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]