We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a605047 + 7f6e4ea commit 9b47f3aCopy full SHA for 9b47f3a
examples/logistic_regression.R
@@ -2,15 +2,15 @@ library(SparkR)
2
3
args <- commandArgs(trailing = TRUE)
4
5
-if (length(args) != 3) {
6
- print("Usage: logistic_regression <master> <file> <iters>")
+if (length(args) != 4) {
+ print("Usage: logistic_regression <master> <file> <iters> <dimension>")
7
q("no")
8
}
9
10
# Initialize Spark context
11
sc <- sparkR.init(args[[1]], "LogisticRegressionR")
12
iterations <- as.integer(args[[3]])
13
-D <- 10
+D <- as.integer(args[[4]])
14
15
readPartition <- function(part){
16
part = strsplit(part, " ", fixed = T)
0 commit comments