- crp_sample_obs(+GEM:gem_param, +Classes:classes(A), +X:A, +PBase:prob, -A:action, -P:prob)// is det
- crp_sample_obs(+GEM:gem_param, +Classes:classes(A), +X:A, +PBase:prob, -A:action)// is det
- Sample action appropriate for observation of value X. PBase is the
probability of X from the base distribution. Action A is new
or
old(N)
where N is the class index. crp_sample_obs//6 additionally returns the
probability of the observation, equivalent to calling crp_prob with X BEFORE
calling crp_sample_obs//5.
Operates in random state DCG.