Hi Moe,
in the C++ implementation the same effect can be achieved by first
adding in the symbols to the underling sequence and then calling
insertContextAndObservation()
(
https://github.com/jgasthaus/libPLUMP/blob/master/src/libplump/hpyp_model.h#L73)
where the first and second argument are the [start, end) interval
describing your context and the last argument is the symbol you want
add/predict.
E.g. if model is your HPYPModel, seq is your backing std::vector<int>,
and x is the observation you want to add/predict you can do:
seq.push_back(x);
double prob = model.insertObservationAndContext(0, seq.size() - 1, x)[0];
Hope this helps,
Jan
> --
> You received this message because you are subscribed to the Google Groups
> "Sequence Memoizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
sequence-memoi...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>