Visualizes a learning algorithm on a 1D or 2D data set.
Trains the model for 1 or 2 selected features, then displays it via ggplot2::ggplot. Good for teaching or exploring models.
For classification and clustering, only 2D plots are supported. The data points, the classification and potentially through color alpha blending the posterior probabilities are shown.
For regression, 1D and 2D plots are supported. 1D shows the data, the estimated mean and potentially the estimated standard error. 2D does not show estimated standard error, but only the estimated mean via background color.
The plot title displays the model id, its parameters, the training performance and the cross-validation performance.
plotLearnerPrediction( learner, task, features = NULL, measures, cv = 10L, ..., gridsize, pointsize = 2, prob.alpha = TRUE, se.band = TRUE, err.mark = "train", bg.cols = c("darkblue", "green", "darkred"), err.col = "white", err.size = pointsize, greyscale = FALSE, pretty.names = TRUE )
learner |
(Learner | |
task |
(Task) |
features |
(character) |
measures |
(Measure | list of Measure) |
cv |
( |
... |
(any) |
gridsize |
( |
pointsize |
( |
prob.alpha |
( |
se.band |
( |
err.mark |
( |
bg.cols |
( |
err.col |
( |
err.size |
( |
greyscale |
( |
pretty.names |
( |
The ggplot2 object.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.