r/madeinpython • • 26m ago

I’m learning Python by building a tiny character model from scratch

https://github.com/Sasen12/before-lecture-one-tiny-character-model

I’m documenting my AI-learning journey by turning the lessons into one small Python project. This is the first milestone where everything from the earlier lessons connects into a runnable program.

It learns character-to-character patterns from a short text file, then samples those learned counts to generate a continuation. I used only Python’s standard library. The output can be awkward, which is useful to see: it’s a simple statistical model, not a neural network and not a finished chatbot.

The GitHub repository is linked above. I’m also posting the lessons here: https://www.youtube.com/channel/UCWMERaecgKZmrqPUHLqWuow

I’d appreciate feedback from people who remember learning Python: is the project layout understandable, and what would you improve next?

1 Upvotes

0 comments sorted by