Monty.Frameworks.Models.ObjectModel.GridTooSmallError exception (ExTbpMonty.Core v0.1.0)

Copy Markdown View Source

An object does not fit in the space the model was given to represent it.

Mirrors tbp/monty/frameworks/models/object_model.py::GridTooSmallError, raised when too many of an episode's observations fall outside the model's grid. Monty only accepts an update in which at least 90% of the observations land inside; below that, the object is larger than max_size, and storing it would silently store a corner of it.

The fraction that did fit is carried along, because "70% of what I saw fits" is the number an experiment needs to know whether to model bigger objects.

Summary

Types

t()

@type t() :: %Monty.Frameworks.Models.ObjectModel.GridTooSmallError{
  __exception__: term(),
  fraction_in_bounds: float() | nil
}