Tested bidirectional architectural input

This commit is contained in:
2018-03-27 11:32:20 +02:00
parent 94ce159d44
commit 92c6368270
14 changed files with 3 additions and 383 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ data.generate_data('letters_word_accetuation_bidirectional_train',
'letters_word_accetuation_bidirectional_test',
'letters_word_accetuation_bidirectional_validate', content_name='SlovarIJS_BESEDE_utf8.lex',
content_shuffle_vector='content_shuffle_vector', shuffle_vector='shuffle_vector',
inputs_location='', content_location='')
inputs_location='cnn/internal_representations/inputs/', content_location='data/')
num_examples = len(data.x_train) # training set size
@@ -84,10 +84,10 @@ model.compile(loss='binary_crossentropy', optimizer=opt, metrics=[actual_accurac
# model.compile(loss='mean_squared_error', optimizer='adam', metrics=['accuracy'])
history = model.fit_generator(data.generator('train', batch_size, content_name='SlovarIJS_BESEDE_utf8.lex', content_location=''),
history = model.fit_generator(data.generator('train', batch_size, content_name='SlovarIJS_BESEDE_utf8.lex', content_location='data/'),
data.x_train.shape[0]/(batch_size * num_fake_epoch),
epochs=actual_epoch*num_fake_epoch,
validation_data=data.generator('test', batch_size, content_name='SlovarIJS_BESEDE_utf8.lex', content_location=''),
validation_data=data.generator('test', batch_size, content_name='SlovarIJS_BESEDE_utf8.lex', content_location='data/'),
validation_steps=data.x_test.shape[0]/(batch_size * num_fake_epoch),
verbose=2
)