The Black Book has a chapter about pattern recognition. But with reinforcement learning you're on your own, I know no example.