Learn R Programming

twinsvm (version 0.0.1)

kernel_lift: Compatibility Alias for the RBF Kernel Lift Plot

Description

kernel_lift() is kept for existing code. New code should call lift_plot().

Usage

kernel_lift(x, y, gamma = 1, center = NULL)

Value

A ggplot object.

Arguments

x

Numeric two-column matrix or data frame.

y

Two-class response.

gamma

Positive RBF scale.

center

Optional numeric length-two center for the RBF bump. If NULL, the centroid of the inner class is used.

See Also

Other visualization: compare_methods(), lift_plot(), lift_plotly()

Examples

Run this code
set.seed(22)
dat <- gen_circles(60, noise = 0.04)
kernel_lift(dat$x, dat$y, gamma = 1)

Run the code above in your browser using DataLab