R/LearnerClustFanny.R
changed.
Other files ignored by Codecov
man/mlr_learners_clust.fanny.Rd
has changed.
6 | 6 | #' @description |
|
7 | 7 | #' A [LearnerClust] for fuzzy clustering implemented in [cluster::fanny()]. |
|
8 | 8 | #' The default number of clusters has been initialized to 2. |
|
9 | + | #' Predictions are generated by copying cluster assignments and memberships |
|
10 | + | #' generated for train data. |
|
9 | 11 | #' |
|
10 | 12 | #' @templateVar id clust.fanny |
|
11 | 13 | #' @template section_dictionary_learner |
52 | 54 | }, |
|
53 | 55 | ||
54 | 56 | .predict = function(task) { |
|
57 | + | msg = "clust.fanny doesn't predict on new data" |
|
58 | + | msg = paste(msg, "and prediction results may not make sense", sep = " ") |
|
59 | + | msg = paste(msg, "if you use it on new data", sep = " ") |
|
60 | + | warning(msg) |
|
61 | + | ||
55 | 62 | partition = self$model$clustering |
|
56 | 63 | ||
57 | 64 | prob = self$model$membership |
Files | Coverage |
---|---|
R | 54.97% |
Project Totals (17 files) | 54.97% |