Share your repls and programming experiences

← Back to all posts
Pokemon Name Generator!
h
21natzil (720)

How to use & What it is

This is a pre-trained AI, that creates new Pokemon names based off a list of around 800. The code is actually really, stupidly simple thanks to the all powerful textgenrnn library which you can find here. If you would like to train it yourself, fork it and delete all the files that start with textgenrnn. If you want it to create more realistic names, you should change the num_epochs value to something higher. Granted, this means it will also take longer to train.

What I learned

Even with this small amount of code, you learn a lot about AI. The first thing being what works as data. I was originally making an AI from my spam emails, however with only 15 emails, the AI was generating gibberish with no sign of improving. After training with pokemon names, 800 of them, the progress it was making was becoming much clearer. The problem with pokemon names is that it's a single word. The textgenrnn lib works much better with sentences, and because of this I had a very high loss ratio. Loss is just a number that's used to show how different the AI's output is, to the input or some other determining factor. Lastly, temperature determines how extreme the AI's Pokemon names are. A low temp means less creative but more accurate, high is the opposite, and usually more fun!

Did it work?

Yes, and no. I think I was able to create an AI that did learn, for example you'll see that early on the AI is using vowels anywhere, but eventually keeps them in the center of names, which is how most Pokemon names are. In addition, it very quickly learned not too use caps letters at the beginning, and only at the beginning. However it's really impossible to grade how it did. Pokemon names are random gibberish already, so it can make anything and it'll sound just fine.

But go on! Run the repl and see what names it makes for you!

Commentshotnewtop
VictorTango (0)

I got a name of Grabba. Creatively simple. Great job!

joshwood (107)

This is a cool idea. I like it!

gigamartin (0)

####################
Temperature: 0.2
####################
Sharicona

Sanderan

Shellipe

####################
Temperature: 0.5
####################
Manpire

Chartarie

Krankis

####################
Temperature: 1.0
####################
Chanesip

Bubante

Munilly

manpire

Zavexeon (288)

It has Pokemon in the title so it automatically get's my like.

My profile pic is a Pokemon, lol.

Also Shinotic is so close to the actual Pokemon named Shiinotic, lol.

themaka (177)

Hi 21natzil!

I love that you included a "What I learned" section. It's a great addition to your post.

Favorite name I got was "Folette".

I'm assuming this is some sort of plant based Pokemon that fires leaves at its target. :)

Thanks for sharing!

Maka

21natzil (720)

@themaka thanks Maka, glad to hear you enjoyed it!