Skip to contents

Ensures that the input is a BatchBirdFlowTrainer() and that it contains the required attributes.

Usage

validate_BatchBirdFlowTrainer(trainer)

Arguments

trainer

An object to validate.

Value

Invisible NULL. Throws an error if validation fails.

Details

Checks:

  • Class must include "BatchBirdFlowTrainer".

  • Must contain element "params".

Examples

if (FALSE) { # \dontrun{
validate_batch_trainer(batch_trainer("amewoo"))
} # }