plot_decision_surface: Helper function to plot classifier decision surface.

Description Usage Arguments

Description

This function generates a plot (ggplot2) of the decision surface for a 2d classifier.

Usage

1
plot_decision_surface(model, X, Y, title = NULL, interpolate = FALSE, ...)

Arguments

model

a model object for which prediction is desired. E.g. object of class canonical_correlation_forrest, canonical_correlation_tree, tree or randomForest.

X

Numeric matrix (n * 2) with n observations of 2 variables

Y

Numeric matrix with n observations of 1 variable

title

Title text for the plot.

interpolate

If TRUE interpolate linearly, if FALSE (the default) don't interpolate.

...

Further arguments passed to model.predict()


jandob/ccf documentation built on May 18, 2019, 12:23 p.m.