Skip to content

Commit 73da9d1

Browse files
BryanCutlerjeanlyn
authored andcommitted
[SPARK-7522] [EXAMPLES] Removed angle brackets from dataFormat option
As is, to specify this option on command line, you have to escape the angle brackets. Author: Bryan Cutler <[email protected]> Closes apache#6049 from BryanCutler/dataFormat-option-7522 and squashes the following commits: b34afb4 [Bryan Cutler] [SPARK-7522] Removed angle brackets from dataFormat option
1 parent 7e9c32e commit 73da9d1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ object DecisionTreeExample {
112112
.text(s"input path to test dataset. If given, option fracTest is ignored." +
113113
s" default: ${defaultParams.testInput}")
114114
.action((x, c) => c.copy(testInput = x))
115-
opt[String]("<dataFormat>")
115+
opt[String]("dataFormat")
116116
.text("data format: libsvm (default), dense (deprecated in Spark v1.1)")
117117
.action((x, c) => c.copy(dataFormat = x))
118118
arg[String]("<input>")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ object GBTExample {
111111
.text(s"input path to test dataset. If given, option fracTest is ignored." +
112112
s" default: ${defaultParams.testInput}")
113113
.action((x, c) => c.copy(testInput = x))
114-
opt[String]("<dataFormat>")
114+
opt[String]("dataFormat")
115115
.text("data format: libsvm (default), dense (deprecated in Spark v1.1)")
116116
.action((x, c) => c.copy(dataFormat = x))
117117
arg[String]("<input>")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ object RandomForestExample {
117117
.text(s"input path to test dataset. If given, option fracTest is ignored." +
118118
s" default: ${defaultParams.testInput}")
119119
.action((x, c) => c.copy(testInput = x))
120-
opt[String]("<dataFormat>")
120+
opt[String]("dataFormat")
121121
.text("data format: libsvm (default), dense (deprecated in Spark v1.1)")
122122
.action((x, c) => c.copy(dataFormat = x))
123123
arg[String]("<input>")

examples/src/main/scala/org/apache/spark/examples/mllib/DecisionTreeRunner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ object DecisionTreeRunner {
126126
.text(s"input path to test dataset. If given, option fracTest is ignored." +
127127
s" default: ${defaultParams.testInput}")
128128
.action((x, c) => c.copy(testInput = x))
129-
opt[String]("<dataFormat>")
129+
opt[String]("dataFormat")
130130
.text("data format: libsvm (default), dense (deprecated in Spark v1.1)")
131131
.action((x, c) => c.copy(dataFormat = x))
132132
arg[String]("<input>")

examples/src/main/scala/org/apache/spark/examples/mllib/GradientBoostedTreesRunner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object GradientBoostedTreesRunner {
6969
.text(s"input path to test dataset. If given, option fracTest is ignored." +
7070
s" default: ${defaultParams.testInput}")
7171
.action((x, c) => c.copy(testInput = x))
72-
opt[String]("<dataFormat>")
72+
opt[String]("dataFormat")
7373
.text("data format: libsvm (default), dense (deprecated in Spark v1.1)")
7474
.action((x, c) => c.copy(dataFormat = x))
7575
arg[String]("<input>")

0 commit comments

Comments
 (0)