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.
1 parent 6aad02d commit fa5e3f9Copy full SHA for fa5e3f9
mllib/src/main/scala/org/apache/spark/ml/clustering/GaussianMixture.scala
@@ -64,8 +64,8 @@ private[clustering] trait GaussianMixtureParams extends Params with HasMaxIter w
64
*/
65
protected def validateAndTransformSchema(schema: StructType): StructType = {
66
SchemaUtils.checkColumnType(schema, $(featuresCol), new VectorUDT)
67
- SchemaUtils.appendColumn(schema, $(predictionCol), IntegerType)
68
- SchemaUtils.appendColumn(schema, $(probabilityCol), new VectorUDT)
+ val schema_temp = SchemaUtils.appendColumn(schema, $(predictionCol), IntegerType)
+ SchemaUtils.appendColumn(schema_temp, $(probabilityCol), new VectorUDT)
69
}
70
71
0 commit comments