log_hparams: Log hyperaparameters

View source: R/hparams.R

log_hparamsR Documentation

Log hyperaparameters

Description

Log hyperaparameters

Usage

log_hparams(..., trial_id = NA, time_created_secs = get_wall_time())

summary_hparams(..., trial_id = NA, time_created_secs = get_wall_time())

Arguments

...

Named values of hyperparameters.

trial_id

A name for the current trail. by default it's the hash of the hparams names and values.

time_created_secs

The time the experiment is created in seconds since the UNIX epoch.

Details

This function should only be called once in a logdir and it will record the set of hyperparameters used in that run. Undefined behavior can happen if it's called more than once in a logdir - specially how TensorBoard behaves during visualization.

Value

A hyperparameter summary. USed for the side effects of logging the hyperparameter to the logdir.

Functions

  • summary_hparams(): For advanced users only. It's recommended to use the log_hparams() function instead. Creates a hyperparameter summary that can be written with log_event().

See Also

log_hparams_config()

Examples

temp <- tempfile()
with_logdir(temp, {
  log_hparams(optimizer = "adam", num_units = 16)
})

tfevents documentation built on June 27, 2024, 5:10 p.m.