Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ class KMeansPredictPlugin extends SparkCommandPlugin[KMeansPredictArgs, FrameRef
var columnNames = new ListBuffer[String]()
var columnTypes = new ListBuffer[DataTypes.DataType]()
for (i <- 1 to kmeansModel.clusterCenters.length) {
val colName = "distance_from_cluster_" + i.toString
val colName = "Distance_from_Cluster:" + i.toString
columnNames += colName
columnTypes += DataTypes.float64
}
columnNames += "predicted_cluster"
columnNames += "Predicted_Cluster"
columnTypes += DataTypes.int32

val newColumns = columnNames.toList.zip(columnTypes.toList.map(x => x: DataType))
Expand Down