mlbench.spirals {mlbench} | R Documentation |
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.spirals(n, cycles=1, sd=0)
n |
number of patterns to create |
cycles |
the number of cycles each spiral makes |
"mlbench.spirals"
with components
x |
input values |
classes |
factor vector of length n with target classes |
# 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)