I have data for xor as below -
x | y | z | x ^ y ^ z |
---|---|---|---|
0 | 0 | 1 | 1 |
0 | 1 | 0 | 1 |
1 | 0 | 0 | 1 |
1 | 1 | 1 | 1 |
Kept only the ones that make the xor of all three equal to 1.
I want to generate synthetic data around the already available data within some range uniformly at random. The above table can be thought of as seed data. An example of expected table will be as follows:
x | y | z | x ^ y ^ z |
---|---|---|---|
0.1 | 0.3 | 0.8 | 0.9 |
0.25 | 0.87 | 0.03 | 0.99 |
0.79 | 0.09 | 0.28 | 0.82 |
0.97 | 0.76 | 0.91 | 0.89 |
Above table is sampled with a range of 0 to 0.3 for 0 value and with range 0.7 to 1 for value 1.
I want to achieve this using pytorch.