// Training data group is 0 testing data group is 1
training_data = np.insert(training_features, 0, training_classes, axis=1) // Insert the classes
training_data = np.insert(training_data, 0, np.zeros((training_data.shape[0],)), axis=1) // Insert the group
testing_data = np.insert(testing_features, 0, np.zeros((testing_features.shape[0],)), axis=1) // Insert the classes
testing_data = np.insert(testing_data, 0, np.ones((testing_data.shape[0],)), axis=1) // Insert the group
// Insert guess
most_frequent_class = Counter(training_classes).most_common(1)[0][0]
data = np.concatenate([training_data, testing_data])
data = np.insert(data, 0, np.array([most_frequent_class] * data.shape[0]), axis=1)
def test_init():
Assert that the TPOT instantiator stores the TPOT variables properly