# `Monty.Frameworks.Models.ObjectModel.GridTooSmallError`
[🔗](https://github.com/d-led/ex.tbp.monty/blob/v0.1.0/packages/ex_tbp_monty_core/lib/monty/frameworks/models/object_model/grid_too_small_error.ex#L1)

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.

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
