Nothing
warn_prediction_useless = function(id) {
msg = sprintf("Learner '%s' doesn't predict on new data and predictions may not make sense on new data", id)
warning(warningCondition(msg, class = "predictionUselessWarning"))
}
allow_partial_matching = list(
warnPartialMatchArgs = FALSE,
warnPartialMatchAttr = FALSE,
warnPartialMatchDollar = FALSE
)
check_centers_param = function(centers, task, test_class, name) {
if (test_class(centers) && ncol(centers) != task$ncol) {
stopf("`%s` must have same number of columns as data.", name)
}
}
check_centers = function(x) {
if (test_data_frame(x) || test_int(x, lower = 1L)) {
TRUE
} else {
"`centers` must be integer or data.frame with initial cluster centers"
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.