r/learnmachinelearning • u/SnooHobbies7910 • Nov 04 '26
Project Making a predictor for enemy position in League of Legends


This is failing miserably right now. The model simply blows up the uncertainty to capture the whole map, and does trivial copy pasting of the position only when enemy is in view. Training on more epochs just increases validation error right after epoch 1.
While this is undoubtedly due to bugs, flawed architecture, insufficient training (?);
Will I even have enough compute and data to tackle this?
LLM says ~100 matches (20*60 frames) per game (120,000 frames total) should be enough to at least see some general learning, but I'm a bit skeptical.
As for GPU, I have a cloud GPU subscription (modal) That will give me some access to a A100
I'm skeptical because, the closest project I can think of to this is OpenAI's Dota bots.. and while this is a much, much simpler task than that; my intuition tells me I'm going to need enough data and compute to almost train a small LLM, and I'm not sure if I have enough.
if data is not an issue, I would love to hear your thoughts on the architecture. The images are a simplified overview, you can ask me more specific questions to get a better idea.
Or, you can try reading my code: (Disclaimer: it's majority AI coded, while I tried my best to debug and read the code, I lost a bit of motivation to do so once I figured I may not have enough resources to bring this project to completion)
https://github.com/turtleishly/League-Map-Predictor
(The quickstart will almost certainly not be quick, you'll need the league of legends game to collect data, on top of other things; so here's one example dataset for a single game: )
https://drive.google.com/drive/folders/1anYmF-tkf1BSNTSsZNYLMwHKE5SRf4Y_?usp=sharing
2
u/ana1flute 29d ago
I feel you are capturing none of the nuance in league, you have turned it into a problem of reading how well a model can read a map.
This model is basically trying to predict location of a jungler based on the locations of seen champs on the map. but you will never have good enough information on everyone, even other than the enemy jungler
i don't think ocr is a good fit for league, nor are image models
0
u/CreativeSympathy8293 29d ago
First try overfitting a few fixed, manually checked windows from one match. Plot predicted coordinates against the labels, and log coordinate error separately from your Gaussian loss and ellipse size. Karpathy describes the tiny-batch check here:
https://karpathy.github.io/2019/04/25/recipe/
Then evaluate on whole held-out matches, keeping every window from a match in one split. That's an application of grouped evaluation for dependent samples:
https://scikit-learn.org/stable/modules/cross_validation.html#cross-validation-iterators-for-grouped-data
Treat failure as a prompt to inspect the pipeline, loss and optimization; passing is only a learning sanity check. Neither tells you that 100 matches or your A100 allocation will be enough.
AI-assisted debugging plan from your post and diagrams; I haven't inspected or run the repository.