makeUnsupervisedTask = function(type, data, weights, blocking, fixup.data, check.data, spatial) {
task = makeTask(type, data, weights, blocking, fixup.data = fixup.data, check.data = check.data,
spatial = spatial)
# we can't use getTaskData to access the tasks's data here because we then
# want to access the description object which is not existing yet
checkTaskData(task$env$data)
addClasses(task, "UnsupervisedTask")
}
#' @export
print.UnsupervisedTask = function(x, print.weights = TRUE, ...) {
td = x$task.desc
catf("Unsupervised task: %s", td$id)
catf("Type: %s", td$type)
catf("Observations: %i", td$size)
catf("Features:")
catf(printToChar(td$n.feat, collapse = "\n"))
catf("Missings: %s", td$has.missings)
if (print.weights)
catf("Has weights: %s", td$has.weights)
catf("Has blocking: %s", td$has.blocking)
catf("Is spatial: %s", td$is.spatial)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.