r/learnmachinelearning • • 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

0 Upvotes

4 comments sorted by

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

1

u/SnooHobbies7910 29d ago

Oh, why? I only used OCR because that's the only way I know to obtain champion positions.

Wait actually callling it OCR may be misleading, I used a YOLO model specifically trained on league, and from my testing the positions are pretty accurately determined.

I was thinking even as a player, we basically only have this information to work with to determine a Jungler's position. Where the rest of the enemy team is, how much CS they have, and what is the state of the map.

1

u/PaintAHappyTree 24d ago

Agreed. I’m an amateur, but I’d imagine more success if you switch to using coordinates. But whether such data exists idk.

Then from there, there are many factors. Vision of each player. Strength of player (gold, xp). Objectives. Time in game. Champions of enemy players. Possibly wave state. Rank of players.

But a lot of that would depend on the quality of data. (I havent looked sorry)

Model selection can vary. Switching to coordinates over images allows classical models to be viable. From there, explore deep learning.

IMO, im amateur!

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.