Last chance! 50% off unlimited learning
Sale ends in
The inputs of the XOR problem are uniformly distributed on
the d
-dimensional cube with corners
mlbench.xor(n, d=2)
Returns an object of class "mlbench.xor"
with components
input values
factor vector of length n
with target classes
number of patterns to create
dimension of the XOR problem
# 2d example
p<-mlbench.xor(300,2)
plot(p)
#
# 3d example
p<-mlbench.xor(300,3)
plot(p)
Run the code above in your browser using DataLab