Skip to content

Commit 9b47f3a

Browse files
committed
Merge pull request apache#100 from hnahak87/patch-1
Update logistic_regression.R
2 parents a605047 + 7f6e4ea commit 9b47f3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/logistic_regression.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ library(SparkR)
22

33
args <- commandArgs(trailing = TRUE)
44

5-
if (length(args) != 3) {
6-
print("Usage: logistic_regression <master> <file> <iters>")
5+
if (length(args) != 4) {
6+
print("Usage: logistic_regression <master> <file> <iters> <dimension>")
77
q("no")
88
}
99

1010
# Initialize Spark context
1111
sc <- sparkR.init(args[[1]], "LogisticRegressionR")
1212
iterations <- as.integer(args[[3]])
13-
D <- 10
13+
D <- as.integer(args[[4]])
1414

1515
readPartition <- function(part){
1616
part = strsplit(part, " ", fixed = T)

0 commit comments

Comments
 (0)