Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR][ML] Fix comments in LSH Examples and Python API #17104

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/**
* An example demonstrating BucketedRandomProjectionLSH.
* Run with:
* bin/run-example org.apache.spark.examples.ml.JavaBucketedRandomProjectionLSHExample
* bin/run-example ml.JavaBucketedRandomProjectionLSHExample
*/
public class JavaBucketedRandomProjectionLSHExample {
public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/**
* An example demonstrating MinHashLSH.
* Run with:
* bin/run-example org.apache.spark.examples.ml.JavaMinHashLSHExample
* bin/run-example ml.JavaMinHashLSHExample
*/
public class JavaMinHashLSHExample {
public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import org.apache.spark.sql.SparkSession
/**
* An example demonstrating BucketedRandomProjectionLSH.
* Run with:
* bin/run-example org.apache.spark.examples.ml.BucketedRandomProjectionLSHExample
* bin/run-example ml.BucketedRandomProjectionLSHExample
*/
object BucketedRandomProjectionLSHExample {
def main(args: Array[String]): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import org.apache.spark.sql.SparkSession
/**
* An example demonstrating MinHashLSH.
* Run with:
* bin/run-example org.apache.spark.examples.ml.MinHashLSHExample
* bin/run-example ml.MinHashLSHExample
*/
object MinHashLSHExample {
def main(args: Array[String]): Unit = {
Expand Down
2 changes: 1 addition & 1 deletion python/pyspark/ml/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class BucketedRandomProjectionLSH(JavaEstimator, LSHParams, HasInputCol, HasOutp
def __init__(self, inputCol=None, outputCol=None, seed=None, numHashTables=1,
bucketLength=None):
"""
__init__(self, inputCol=None, outputCol=None, seed=None, numHashTables=1,
__init__(self, inputCol=None, outputCol=None, seed=None, numHashTables=1, \
bucketLength=None)
"""
super(BucketedRandomProjectionLSH, self).__init__()
Expand Down