3692109a392c5f90829bae24133b58d113b0eab2,examples/convolutional_model.py,,,#,2

Before Change


print("Processing data...")
imageProcessor = ImageProcessor(image_data, target_dimensions=target_dimensions, rgb=False, channels=1)
image_array = imageProcessor.process_training_data()
image_data = np.array([[image] for image in image_array])
if verbose:
	print ("processed image data shape: " + str(image_data.shape))

print("Creating training/testing data...")

After Change


                                                    test_size=validation_split, random_state=42, stratify=labels)


train_gen = DataGenerator().fit(X_train, y_train)
test_gen = DataGenerator().fit(X_test, y_test)
print("Training net...")
model = ConvolutionalNN(target_dimensions, channels, label_count)
model.fit_generator(train_gen.generate(batch_size=10), test_gen.generate(batch_size=10), epochs=10)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: thoughtworksarts/EmoPy
Commit Name: 3692109a392c5f90829bae24133b58d113b0eab2
Time: 2018-01-27
Author: puneethp@thoughtworks.com
File Name: examples/convolutional_model.py
Class Name:
Method Name:


Project Name: scikit-learn/scikit-learn
Commit Name: e52e9c8d7536b6315da655164951060642a52707
Time: 2019-09-18
Author: tom.dupre-la-tour@m4x.org
File Name: sklearn/manifold/tests/test_t_sne.py
Class Name:
Method Name: test_barnes_hut_angle


Project Name: thoughtworksarts/EmoPy
Commit Name: a94f7b93251013d51d9918c27ab2569eb526a494
Time: 2018-02-14
Author: puneethp@thoughtworks.com
File Name: examples/timedelay_conv_model.py
Class Name:
Method Name: