A synthetic two-dimensional binary classification problem where the two classes form interleaved spirals - a simple example of data that linear models cannot separate. Included as supervised-learning practice data.

spirals

Format

A data frame with 2,000 rows and 3 columns: coordinates x0, x1 and the class label y (factor, 0/1).

Examples

data(spirals)
head(spirals)
#>          x0         x1 y
#> 1 -7.443879  11.697286 0
#> 2 -6.747521  -9.028018 0
#> 3 -2.234978   7.401086 0
#> 4 -4.339705 -10.063746 0
#> 5 -2.176840 -10.779566 0
#> 6  2.017043  -3.761826 0