powered by
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.
sd>0
mlbench.1spiral
mlbench.spirals(n, cycles=1, sd=0) mlbench.1spiral(n, cycles=1, sd=0)
number of patterns to create
the number of cycles each spiral makes
standard deviation of data points around the spirals
Returns an object of class "mlbench.spirals" with components
"mlbench.spirals"
input values
factor vector of length n with target classes
n
# NOT RUN { # 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) # }
Run the code above in your browser using DataLab