I'm glad you shared the code. I'm also doing GP-sarsa code recently. But when I run your code, it will show the error.