validation_after_training_cb: Validation after training callback

View source: R/callbacks.R

validation_after_training_cbR Documentation

Validation after training callback

Description

Do validation only once at end of training.

Usage

validation_after_training_cb(gen.val, validation_steps)

Arguments

gen.val

Validation generator

validation_steps

Number of validation steps.

Value

Keras callback, apply validation only after training.

Examples


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)


GenomeNet/deepG documentation built on Dec. 24, 2024, 12:11 p.m.