Skip to content

Commit d14c21e

Browse files
committed
Renamed schema_temp with more descriptive camelCase variable names.
1 parent eb66b1e commit d14c21e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mllib/src/main/scala/org/apache/spark/ml/clustering/GaussianMixture.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ private[clustering] trait GaussianMixtureParams extends Params with HasMaxIter w
6464
*/
6565
protected def validateAndTransformSchema(schema: StructType): StructType = {
6666
SchemaUtils.checkColumnType(schema, $(featuresCol), new VectorUDT)
67-
val schema_temp = SchemaUtils.appendColumn(schema, $(predictionCol), IntegerType)
68-
SchemaUtils.appendColumn(schema_temp, $(probabilityCol), new VectorUDT)
67+
val schemaWithPredictionCol = SchemaUtils.appendColumn(schema, $(predictionCol), IntegerType)
68+
SchemaUtils.appendColumn(schemaWithPredictionCol, $(probabilityCol), new VectorUDT)
6969
}
7070
}
7171

mllib/src/main/scala/org/apache/spark/ml/regression/AFTSurvivalRegression.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ private[regression] trait AFTSurvivalRegressionParams extends Params
110110
SchemaUtils.checkNumericType(schema, $(labelCol))
111111
}
112112

113-
val temp_schema = if (hasQuantilesCol) {
113+
val schemaWithQuantilesCol = if (hasQuantilesCol) {
114114
SchemaUtils.appendColumn(schema, $(quantilesCol), new VectorUDT)
115115
} else schema
116116

117-
SchemaUtils.appendColumn(temp_schema, $(predictionCol), DoubleType)
117+
SchemaUtils.appendColumn(schemaWithQuantilesCol, $(predictionCol), DoubleType)
118118
}
119119
}
120120

0 commit comments

Comments
 (0)