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: 2 -0.7315600 -0.10546976 #> 2: 2 -0.5649043 -0.41257447 #> 3: 1 0.7765891 -0.20182830 #> 4: 2 0.9194832 0.75695874 #> 5: 1 -0.6361984 0.43658084 #> 6: 2 0.9338177 0.96873893 #> 7: 2 -0.5063392 -0.99617858 #> 8: 1 0.1542598 -0.01266712 #> 9: 2 -0.7681001 -0.27822411 #> 10: 2 -0.8948172 -0.47225048