• Follow our Instagram!
  • Curious about what we're currently doing about bots? Check out the latest updates from staff in this thread.

Other Stats Based Team Generator

Stats Based Team Generator

This is the thread for the Stats Based Team Generator!

This application builds complete, Showdown-importable teams for any format from Smogon's usage statistics, checks and counters data, teammate data, and Smogon analysis sets.

Examples

Gen 9 OU:
1783603314105.png


Champions VGC:

1783601555900.png


Gen 1 OU:
1783597506900.png


How does it work?

You pick a stats month, a format, and a rating cutoff. The application pulls the matching chaos stats file from Smogon, then builds a team out of it.

Every Pokémon in the file gets a set. If Smogon has a written analysis for it, the analysis set is used directly, otherwise the set is reconstructed from the usage data: most common ability, item, spread, Tera type, and the four highest-weighted moves. Move selection is item-aware, so a Choice user will not be handed a status move it cannot click, an Assault Vest user will not be handed Protect, and a Body Press set will pull in the defense boost that makes it work.

Each set is then read for what it actually does on a team: hazard setting, hazard removal, hazard preservation, speed control, positioning, spread pressure, board control, breaking, cleaning, pivoting, setup, status, item disruption, and weather or terrain. The team is assembled with a beam search that keeps the five best partial teams at every step, so it is not just stacking the six highest-usage Pokémon.

Teams are scored on usage, set confidence, teammate synergy from the stats file, role coverage, threat coverage from the checks and counters data, set-to-team fit, and duplicate-role penalties. Anything the team cannot answer gets flagged.

Format awareness

Singles and doubles are not scored with the same priorities. Singles weights hazards, removal, preservation, pivoting, and item disruption. Doubles weights speed control, positioning, spread pressure, and board control, and it enforces Item Clause where the format requires it. Trick Room teams are checked for slow attackers that actually benefit from the speed reversal, weather teams for setter-plus-abuser pairs, and Mega Stones for being not wildly distributed.

Six archetypes are available: Balanced, Offense, Bulky Offense, Stall, Weather, and Trick Room.

It gives me the team, but is it legal?

Every generated team is run through the real Showdown team validator via @pkmn/sim. If the format is supported, you get a legality verdict and the exact problems back. Any generation is one click away from a Showdown import.

What else can I do with it?

You can lock any Pokémon you want to keep and regenerate around it, or reroll a single slot and the generator will replace just that one while preserving the rest of the team. Every member comes with an explanation of why it was added. There is also a dark mode. :)

Disclaimer

In no way I claim the teams are perfect or meta teams, this was just a fun way for me to find a way to generate teams on the fly.
If you have suggestions to improve the team generation algorithm, go ahead!

Enough of it, how can I use it?

The website: https://teamgen.fulllifegames.com/
The source: https://github.com/FullLifeGames/StatsBasedTeamGenerator

I11dY_7aT5xkwQumaqtsLg.png
 
This is a really cool project!

One thing that is extremely worthy of note is that the stats pages no longer have .txt extensions (although you can brute force them to in a browser by manually ending them in .txt).

You will need to add some way to convert the .txt.gz pages into .txt, because right now the site doesn’t work unfortunately

Good luck and I look forwards to seeing more improvements!

One suggestion I have is being able to lock a *pokemon* into a team, but allowing the set to change. For example, I might want to go “generate a team with ferrothorn, toxapex, and heatran, but the sets can be anything they need to be”. In that same vein, being able to manually enter pokemon would be nice, since you otherwise have to just hit shuffle until you get what you want
 
alaserdolphin said:
This is a really cool project!

One thing that is extremely worthy of note is that the stats pages no longer have .txt extensions (although you can brute force them to in a browser by manually ending them in .txt).

You will need to add some way to convert the .txt.gz pages into .txt, because right now the site doesn’t work unfortunately

Good luck and I look forwards to seeing more improvements!

One suggestion I have is being able to lock a *pokemon* into a team, but allowing the set to change. For example, I might want to go “generate a team with ferrothorn, toxapex, and heatran, but the sets can be anything they need to be”. In that same vein, being able to manually enter pokemon would be nice, since you otherwise have to just hit shuffle until you get what you want
Thank you for your report and diagnosis, this really helped. It's back up now!
 
Back
Top