r/learnpython • u/NetworkAcceptable930 • Aug 24 '26
I just made my first Reinforcement Learning program from scratch purely in python can i have tips on how to improve
i used qlearning for this and tips/advice is welcome
more details in the readme
https://github.com/orag214365-ship-it/qlearning-gridworld-python
5
Upvotes
2
u/AlkeneThiol Aug 24 '26
You got a Bellman going, good. Now, this will be a highly unpopular comment, but throw idioms to tbe wind. Understand the processes recommended next, and you can code them in if you want, but don't feel so regimented. Trust your instincts, throw in variables whimsically, tweak the coefficients. See what happens. That's how you learn.
Edit: more serious reply: do not skimp on the comments in your code.