This reference describes unreleased code on main; no release documents it yet.

rlmesh::SessionRunOptions

structPreviewuse rlmesh::SessionRunOptions;[source]

The keywords of Session.run.

struct SessionRunOptions<'h>

episodes

field[source]
episodes: Option<u64>

The exact number of episodes (see RunOptions::episodes).

seeds

field[source]
seeds: Option<Vec<i64>>

One reset seed per episode.

max_episode_steps

field[source]
max_episode_steps: Option<u64>

Truncate an episode after this many steps (at least 1).

max_episode

field[source]
max_episode: Option<std::time::Duration>

Truncate an episode after this wall time (must be positive).

hooks

field[source]
hooks: Option<&'h mut dyn RunHooks>

Observer callbacks, borrowed for the call.

trial_index_base

field[source]
trial_index_base: u64

The first trial ordinal.

cancel

field[source]
cancel: Option<CancelToken>

Cancels this call, beside the session’s own token.

Trait implementations

  • impl<'h> Default for SessionRunOptions<'h>
  • impl Debug for SessionRunOptions<'_>