Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add is.loaded in comment
  • Loading branch information
wangmiao1981 committed Jan 23, 2017
commit d1a2d6c9a83adc184dcc88ec3fd78b63ede39b89
3 changes: 2 additions & 1 deletion R/pkg/R/mllib_clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ setMethod("spark.kmeans", signature(data = "SparkDataFrame", formula = "formula"
#' The list includes the model's \code{k} (the configured number of cluster centers),
#' \code{coefficients} (model cluster centers),
#' \code{size} (number of data points in each cluster), \code{cluster}
#' (cluster centers of the transformed data), and \code{clusterSize}
#' (cluster centers of the transformed data), {is.loaded} (whether the model is loaded
#' from a saved file), and \code{clusterSize}
#' (the actual number of cluster centers. When using initMode = "random",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add is.loaded here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. I will add it. For bisecting kmeans, I haven't found a case like this. This case only occurs when initMode is random and this behavior was due to one fix to kmeans implementation.

#' \code{clusterSize} may not equal to \code{k}).
#' @rdname spark.kmeans
Expand Down