approx_prediction_step function

Performs approximate inference in a time slice of the dbn