a94f7b93251013d51d9918c27ab2569eb526a494,examples/timedelay_conv_model.py,,,#,2

Before Change


print("Processing data...")
imageProcessor = ImageProcessor(image_data, target_dimensions=target_dimensions, time_series=True)
image_array = imageProcessor.process_training_data()
image_data = np.array([np.array([image]).reshape([time_delay]+list(target_dimensions)+[channels]) for image in image_array])
if verbose:
    print ("processed image data shape: " + str(image_data.shape))

After Change


X_train, X_test, y_train, y_test = train_test_split(image_data, labels,
                                                    test_size=validation_split, random_state=42, stratify=labels)
train_gen = DataGenerator(time_delay=time_delay).fit(X_train, y_train)
test_gen = DataGenerator(time_delay=time_delay).fit(X_test, y_test)

print("Training net...")
model = TimeDelayConvNN(target_dimensions, time_delay, channels, label_count)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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:


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


Project Name: suavecode/SUAVE
Commit Name: ffbde595120a3fa742c60086de2006c1cf9584b1
Time: 2019-03-10
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Analyses/Aerodynamics/Vortex_Lattice.py
Class Name: Vortex_Lattice
Method Name: build_surrogate