@@ -31,6 +31,7 @@ import org.apache.spark.ml.param._
3131 */
3232@ DeveloperApi
3333trait HasRegParam extends Params {
34+
3435 /**
3536 * Param for regularization parameter.
3637 * @group param
@@ -47,6 +48,7 @@ trait HasRegParam extends Params {
4748 */
4849@ DeveloperApi
4950trait HasMaxIter extends Params {
51+
5052 /**
5153 * Param for max number of iterations.
5254 * @group param
@@ -59,10 +61,13 @@ trait HasMaxIter extends Params {
5961
6062/**
6163 * :: DeveloperApi ::
62- * Trait for shared param featuresCol.
64+ * Trait for shared param featuresCol (default: "features") .
6365 */
6466@ DeveloperApi
6567trait HasFeaturesCol extends Params {
68+
69+ setDefault(featuresCol, " features" )
70+
6671 /**
6772 * Param for features column name.
6873 * @group param
@@ -75,10 +80,13 @@ trait HasFeaturesCol extends Params {
7580
7681/**
7782 * :: DeveloperApi ::
78- * Trait for shared param labelCol.
83+ * Trait for shared param labelCol (default: "label") .
7984 */
8085@ DeveloperApi
8186trait HasLabelCol extends Params {
87+
88+ setDefault(labelCol, " label" )
89+
8290 /**
8391 * Param for label column name.
8492 * @group param
@@ -91,10 +99,13 @@ trait HasLabelCol extends Params {
9199
92100/**
93101 * :: DeveloperApi ::
94- * Trait for shared param predictionCol.
102+ * Trait for shared param predictionCol (default: "prediction") .
95103 */
96104@ DeveloperApi
97105trait HasPredictionCol extends Params {
106+
107+ setDefault(predictionCol, " prediction" )
108+
98109 /**
99110 * Param for prediction column name.
100111 * @group param
@@ -107,10 +118,13 @@ trait HasPredictionCol extends Params {
107118
108119/**
109120 * :: DeveloperApi ::
110- * Trait for shared param rawPredictionCol.
121+ * Trait for shared param rawPredictionCol (default: "rawPrediction") .
111122 */
112123@ DeveloperApi
113124trait HasRawPredictionCol extends Params {
125+
126+ setDefault(rawPredictionCol, " rawPrediction" )
127+
114128 /**
115129 * Param for raw prediction (a.k.a. confidence) column name.
116130 * @group param
@@ -123,10 +137,13 @@ trait HasRawPredictionCol extends Params {
123137
124138/**
125139 * :: DeveloperApi ::
126- * Trait for shared param probabilityCol.
140+ * Trait for shared param probabilityCol (default: "probability") .
127141 */
128142@ DeveloperApi
129143trait HasProbabilityCol extends Params {
144+
145+ setDefault(probabilityCol, " probability" )
146+
130147 /**
131148 * Param for column name for predicted class conditional probabilities.
132149 * @group param
@@ -143,6 +160,7 @@ trait HasProbabilityCol extends Params {
143160 */
144161@ DeveloperApi
145162trait HasThreshold extends Params {
163+
146164 /**
147165 * Param for threshold in prediction.
148166 * @group param
@@ -159,6 +177,7 @@ trait HasThreshold extends Params {
159177 */
160178@ DeveloperApi
161179trait HasInputCol extends Params {
180+
162181 /**
163182 * Param for input column name.
164183 * @group param
@@ -175,6 +194,7 @@ trait HasInputCol extends Params {
175194 */
176195@ DeveloperApi
177196trait HasOutputCol extends Params {
197+
178198 /**
179199 * Param for output column name.
180200 * @group param
@@ -191,6 +211,7 @@ trait HasOutputCol extends Params {
191211 */
192212@ DeveloperApi
193213trait HasCheckpointInterval extends Params {
214+
194215 /**
195216 * Param for checkpoint interval.
196217 * @group param
@@ -202,3 +223,4 @@ trait HasCheckpointInterval extends Params {
202223}
203224
204225// scalastyle:on
226+
0 commit comments