Neural probabilistic motor primitives for humanoid control