generate_gaussian_parity

proglearn.sims.generate_gaussian_parity(n_samples, centers=None, class_label=None, cluster_std=0.25, angle_params=None, random_state=None)[source]

Generate 2-dimensional Gaussian XOR distribution. (Classic XOR problem but each point is the center of a Gaussian blob distribution)

Parameters

n_samples : int

Total number of points divided among the four clusters with equal probability.

centers : array of shape [n_centers,2], optional (default=None)

The coordinates of the ceneter of total n_centers blobs.

class_label : array of shape [n_centers], optional (default=None)

class label for each blob.

cluster_std : float, optional (default=1)

The standard deviation of the blobs.

angle_params: float, optional (default=None)

Number of radians to rotate the distribution by.

random_state : int, RandomState instance, default=None

Determines random number generation for dataset creation. Pass an int for reproducible output across multiple function calls.

Returns

X : array of shape [n_samples, 2]

The generated samples.

y : array of shape [n_samples]

The integer labels for cluster membership of each sample.