check_epoch: Check if the 'epoch' is valid

View source: R/check_epoch.R

check_epochR Documentation

Check if the epoch is valid

Description

Check if the epoch is valid Will stop if not.

Usage

check_epoch(epoch)

Arguments

epoch

the epoch, as checked by check_epoch

Details

Note that in some contexts, epoch cannot be zero. That condition will be checked in that context.

Value

Nothing. Will stop if epoch is invalid.

Author(s)

Richèl J.C. Bilderbeek

Examples

check_epoch(0) # For example, before the experiment start
check_epoch(1) # For example, after a first training epoch
check_epoch(100)

richelbilderbeek/gcaer documentation built on March 25, 2024, 3:08 p.m.