Monty.Experiment.RecognitionStrategy.MaxTotalSteps (ExTbpMonty.Core v0.1.0)

Copy Markdown View Source

Done at a hard step ceiling, and every lagging module timed out with it.

Mirrors tbp/monty/experiment/recognition_strategy.py::MaxTotalSteps. The ceiling counts every step, not matching ones, so it is what stops an episode that is spinning without ever perceiving anything.

Summary

Functions

Done at the ceiling; a ceiling reached is also a timeout for the modules.

A policy that ends the episode at :max_total_steps steps.

Functions

call(model, counter, map)

Done at the ceiling; a ceiling reached is also a timeout for the modules.

new(options)

@spec new(keyword()) :: {:ok, {module(), map()}} | {:error, String.t()}

A policy that ends the episode at :max_total_steps steps.

Monty raises ValueError for a ceiling that is not positive; here that is {:error, message} with Monty's own words.