from config import DataGeneratorCfg
from sklearn.datasets.samples_generator import make_blobs
import numpy as np

def generate():
    data, true_labels = make_blobs(n_samples=DataGeneratorCfg.n_samples, centers=DataGeneratorCfg.centers, cluster_std=DataGeneratorCfg.cluster_std, random_state=DataGeneratorCfg.random_state)
    print("Generating new data!")
    np.savetxt("data/data.txt", data)
    np.savetxt("data/true_labels.txt", true_labels)
    return data


[((154, 332), 'sklearn.datasets.samples_generator.make_blobs', 'make_blobs', ([], {'n_samples': 'DataGeneratorCfg.n_samples', 'centers': 'DataGeneratorCfg.centers', 'cluster_std': 'DataGeneratorCfg.cluster_std', 'random_state': 'DataGeneratorCfg.random_state'}), '(n_samples=DataGeneratorCfg.n_samples, centers=DataGeneratorCfg.\n    centers, cluster_std=DataGeneratorCfg.cluster_std, random_state=\n    DataGeneratorCfg.random_state)\n', (164, 332), False, 'from sklearn.datasets.samples_generator import make_blobs\n'), ((361, 394), 'numpy.savetxt', 'np.savetxt', (['"""data/data.txt"""', 'data'], {}), "('data/data.txt', data)\n", (371, 394), True, 'import numpy as np\n'), ((399, 446), 'numpy.savetxt', 'np.savetxt', (['"""data/true_labels.txt"""', 'true_labels'], {}), "('data/true_labels.txt', true_labels)\n", (409, 446), True, 'import numpy as np\n')]