A Generator for the xor task in mlbench::mlbench.xor().

GeneratorXor

Format

R6::R6Class inheriting from Generator.

Examples

mlr_generators$get("xor")$generate(10)$data()
#> classes x.1 x.2 #> 1: 1 -0.96161794 0.62247470 #> 2: 1 0.54737208 -0.36287381 #> 3: 2 0.11933016 0.16289468 #> 4: 1 0.28292528 -0.08902208 #> 5: 2 -0.06313576 -0.46239310 #> 6: 1 -0.44155238 0.11035441 #> 7: 2 -0.07756686 -0.53753823 #> 8: 2 0.58547668 0.08646580 #> 9: 1 0.17113115 -0.10485972 #> 10: 2 -0.21048203 -0.73942373