PlanPosterior#

class hybrid_aif.planning.PlanPosterior[source]#

Bases: NamedTuple

A continuous plan and the Laplace posterior around it.

mode: Array#

The plans as a policy set, (starts, policy_len, action_dim) (one member for one start), the best start’s at the index q_pi is a point mass on.

posterior: TruncatedGaussian#

The TruncatedGaussian on the box over the flattened plan, (policy_len · action_dim,), time-major.

first_step(key)[source]#

A draw of the first step’s action from the posterior (in the box by construction).

static __new__(_cls, mode, posterior)#

Create new instance of PlanPosterior(mode, posterior)