validation_after_training_cb | R Documentation |
Do validation only once at end of training.
validation_after_training_cb(gen.val, validation_steps)
gen.val |
Validation generator |
validation_steps |
Number of validation steps. |
Keras callback, apply validation only after training.
maxlen <- 20
model <- create_model_lstm_cnn(layer_lstm = 8, maxlen = maxlen)
gen <- get_generator(train_type = 'dummy_gen', model = model, batch_size = 4, maxlen = maxlen)
vat <- validation_after_training_cb(gen.val = gen, validation_steps = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.