new_xor_variables function

Create a set of categorical variables using the logical XOR operator.

Create a set of categorical variables using the logical XOR operator.

new_xor_variables(n_variables = 2, n_instances = 1000, noise = 0)

Arguments

  • n_variables: An integer as the number of variables to be created. It is the number of column variables of the table, an additional column is added as a result of the XOR operator over the instances.
  • n_instances: An integer as the number of instances to be created. It is the number of rows of the table.
  • noise: A float number as the noise level for the variables.

Returns

A set of random variables constructed using the logical XOR operator.

Examples

new_xor_variables(2, 4, 0) new_xor_variables(5, 10, 0.5)
  • Maintainer: Elias Maciel
  • License: GPL-3 | file LICENSE
  • Last published: 2017-09-30

Useful links