mlbench.spirals

0th

Percentile

Two Spirals Benchmark Problem

The inputs of the spirals problem are points on two entangled spirals. If sd>0, then Gaussian noise is added to each data point. mlbench.1spiral creates a single spiral.

Keywords
datagen
Usage
mlbench.spirals(n, cycles=1, sd=0)
mlbench.1spiral(n, cycles=1, sd=0)
Arguments
n
number of patterns to create
cycles
the number of cycles each spiral makes
Value

  • Returns an object of class "mlbench.spirals" with components
  • xinput values
  • classesfactor vector of length n with target classes

Aliases
  • mlbench.spirals
  • mlbench.1spiral
Examples
# 1 cycle each, no noise
p<-mlbench.spirals(300)
plot(p)
#
# 1.5 cycles each, with noise
p<-mlbench.spirals(300,1.5,0.05)
plot(p)
Documentation reproduced from package mlbench, version 0.5-1, License: Free for non-commercial purposes. See the file README and the help pages of the data sets for details.

Community examples

Looks like there are no examples yet.