Github user MLnick commented on a diff in the pull request:
https://github.com/apache/spark/pull/11844#discussion_r62712615
--- Diff: examples/src/main/python/ml/bisecting_k_means_example.py ---
@@ -19,9 +19,6 @@
# $example on$
from pyspark.ml.clustering import BisectingKMeans, BisectingKMeansModel
-from pyspark.mllib.linalg import VectorUDT, _convert_to_vector, Vectors
-from pyspark.mllib.linalg import Vectors
-from pyspark.sql.types import Row
# $example off$
from pyspark.sql import SparkSession
--- End diff --
I'd like to add the "run-with" instruction to the main doc string, e.g.
```
"""
A simple example demonstrating a bisecting k-means clustering.
Run with:
bin/spark-submit examples/src/main/python/ml/bisecting_k_means_example.py
"""
```
---
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]