Skip to content

Commit 3bd8ddf

Browse files
Yun Niyanboliang
authored andcommitted
[MINOR][ML] Fix comments in LSH Examples and Python API
## What changes were proposed in this pull request? Remove `org.apache.spark.examples.` in Add slash in one of the python doc. ## How was this patch tested? Run examples using the commands in the comments. Author: Yun Ni <yunn@uber.com> Closes #17104 from Yunni/yunn_minor.
1 parent de2b53d commit 3bd8ddf

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/src/main/java/org/apache/spark/examples/ml/JavaBucketedRandomProjectionLSHExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/**
4343
* An example demonstrating BucketedRandomProjectionLSH.
4444
* Run with:
45-
* bin/run-example org.apache.spark.examples.ml.JavaBucketedRandomProjectionLSHExample
45+
* bin/run-example ml.JavaBucketedRandomProjectionLSHExample
4646
*/
4747
public class JavaBucketedRandomProjectionLSHExample {
4848
public static void main(String[] args) {

examples/src/main/java/org/apache/spark/examples/ml/JavaMinHashLSHExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/**
4343
* An example demonstrating MinHashLSH.
4444
* Run with:
45-
* bin/run-example org.apache.spark.examples.ml.JavaMinHashLSHExample
45+
* bin/run-example ml.JavaMinHashLSHExample
4646
*/
4747
public class JavaMinHashLSHExample {
4848
public static void main(String[] args) {

examples/src/main/scala/org/apache/spark/examples/ml/BucketedRandomProjectionLSHExample.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.apache.spark.sql.SparkSession
2828
/**
2929
* An example demonstrating BucketedRandomProjectionLSH.
3030
* Run with:
31-
* bin/run-example org.apache.spark.examples.ml.BucketedRandomProjectionLSHExample
31+
* bin/run-example ml.BucketedRandomProjectionLSHExample
3232
*/
3333
object BucketedRandomProjectionLSHExample {
3434
def main(args: Array[String]): Unit = {

examples/src/main/scala/org/apache/spark/examples/ml/MinHashLSHExample.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.apache.spark.sql.SparkSession
2828
/**
2929
* An example demonstrating MinHashLSH.
3030
* Run with:
31-
* bin/run-example org.apache.spark.examples.ml.MinHashLSHExample
31+
* bin/run-example ml.MinHashLSHExample
3232
*/
3333
object MinHashLSHExample {
3434
def main(args: Array[String]): Unit = {

python/pyspark/ml/feature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class BucketedRandomProjectionLSH(JavaEstimator, LSHParams, HasInputCol, HasOutp
258258
def __init__(self, inputCol=None, outputCol=None, seed=None, numHashTables=1,
259259
bucketLength=None):
260260
"""
261-
__init__(self, inputCol=None, outputCol=None, seed=None, numHashTables=1,
261+
__init__(self, inputCol=None, outputCol=None, seed=None, numHashTables=1, \
262262
bucketLength=None)
263263
"""
264264
super(BucketedRandomProjectionLSH, self).__init__()

0 commit comments

Comments
 (0)