[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Neuroevolutionary Algorithms

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 84
Thread images: 19

File: Capture11.png (22KB, 508x518px) Image search: [Google]
Capture11.png
22KB, 508x518px
This program uses neuroevolutionary algorithms to learn how to play Flappy Bird and Asteroids. I hit over a million points last night with only 42 levels. Feel free to try it out for yourself

We had a good thread before
>>57438317

Anyways here are the links:
https://xviniette.github.io/FlappyLearning/
https://xviniette.github.io/AsteroidsLearning/
>>
>>57471675
Absolutely Cool!
>>
teach it how to play dota next
>>
asteroids is missing the max score
>>
Man my birdie is a retard this time, last time I managed to get a perfect flight after only 3 generations, now I'm at 70 and still going.
>>
>>57471675
How long does it take Asteroids to start getting good? I'm two thousand generations in and the ships still suck.
>>
>>57471891
im at around 400,000 and it still it slightly dumb
>>
>>57471933
Shit. How long did that take you?
>>
>>57471980
around 3 1/2 days
>>
>>57471891
I think that's because there is a lot of luck in the game. Doofus can suvive the longest time.
>>
>>57471933
>>57472000
post webm
>>
>>57471891
>>57471933
the algorithm is flawed for the ships. you're wasting electricity training it beyond ~300 gens. it won't improve from there.
>>
>>57471772
i bet it will play better than autistic russians and peruvians
>>
File: 1478852986006.webm (2MB, 320x240px) Image search: [Google]
1478852986006.webm
2MB, 320x240px
>>57472219
>>
>>57472601
Dunno what implementation that is, but algorithm looks good
>>
>>57471675
>github.io
what is this new meme
>>
dont know know much about ai, how complex games can algorithms like these handle?
>>
>>57472623
it is not a meme you dumbfuck, the gift you a domain with github.io at the end, and you use it, and that's that
>>
>>57472617
It's pretty much the same implementation, I did it in c++ https://github.com/znoraka/asteroids
>>
>>57472636
Probably anything where the data can be collected.
3D FPS games are possible too.
>>
i wish we had mmorpgs with ai that actually gets better al the time
>>
>>57472657
sounds cool, any links where i can learn more?
>>
>>57472674
getting buttfucked by ai wouldn't make much of a game tho
>>
>>57472677
I'm no expert, but I have read somewhere that it's easily possible.
Basically you need a way to collect the data of everything relevant (your own information and information about the environment)
The algorithm then does something random and when it dies, it checks how well it did in the run.
It then does another run that is similar to the first one, but has slightly different behaviour. If it did better than before, then it will try new things based on THAT result. If not, it will scrap the idea and try something new.
Because of that it will constantly improve by trying random new things and only keeping the good results.

So for something like this to work, you need information about what's happening and a way to find out whether it did good or bad (a score system).
In a FPS game it would sooner or later realise that it gets points for shooting at enemies, and does bad if it gets shot, so it will improve on that with random new actions to reach the best possible kill to death ratio.
>>
>>57472654
i'm a stupid fuck, can this work on that bash on ubuntu on windows thing?
>>
>>57472894
I honestly have no idea, sorry, but it is worth a try
>>
>>57472674
Since when do MMORPGs have AI?
>>
I wish I had proper Advance Wars AI.
So lonely ;_;
>>
>>57471675
Dude, this thing basically became unstoppable after only gen 7.
>>
>>57473188
actually it all depends how its allowed to evolve
>>
File: unstoppable.png (18KB, 507x520px) Image search: [Google]
unstoppable.png
18KB, 507x520px
He's still going, the absolute madman!
>>
todays progress
>>
>>57472601
poor green blobs, look so vulnerable and frightened
>>
Holy shit, get to about generation 30 and it just quad-triples its score, and then it becomes a wizard.
>>
File: fl.png (22KB, 527x541px) Image search: [Google]
fl.png
22KB, 527x541px
tfw its better than me
>>
File: Quick_with_repairs.png (101KB, 1498x900px) Image search: [Google]
Quick_with_repairs.png
101KB, 1498x900px
>>57472708
It depends...
>>
File: firefox_2016-11-11_19-09-25.png (23KB, 502x515px) Image search: [Google]
firefox_2016-11-11_19-09-25.png
23KB, 502x515px
Pretty cool OP
>>
>>57471772
There's actually a university trying to do that

It's in the workshop somewhere, look it up
>>
File: 1477615830720.png (387KB, 600x1062px) Image search: [Google]
1477615830720.png
387KB, 600x1062px
When do we get AI gf's?
>>
>>57477599
workin on it
how much should i charge for it?
>>
>>57478610
Release it under gpl
>>
>>57478755
you have an idea of how much $$$$$$$$$$$$$$$$$$$$$$$ & pussei you can get outta that?
>>
>>57478764
You're targetting neet, you won't be able to make money with it.
>>
>>57471675
Not reading through your source code could you briefly describe how it works?

I assume flappy birds is a simple enough game you can access it directly while
>>57471772
Dota has no simple api or easy way to grab the players state. I would assume you would have to process the screen with some computer vision and then make your machine learn what to do from that. Obviously a more computationally expensive task.
>>
>>57477599
By the time AI will be able to hold coherent conversations it will be smart enough to know that you're no good for dating, anon.
>>
File: 1439846678654.jpg (129KB, 800x750px) Image search: [Google]
1439846678654.jpg
129KB, 800x750px
>>57479148
D-don't say that
>>
File: Untitled.png (20KB, 496x511px) Image search: [Google]
Untitled.png
20KB, 496x511px
My guy is going strong!
>>
>>57477587
I think it's starcraft
>>
>>57472601
Would be cool if the ships could be somewhat slower, so that the predictive intelligence could be tested. Also gravity of asteroids would be nice so we can check if the AI could learn something about Physics (indirect observable world rules)
>>
>>57472708
It would make the game a hell lot more interesting.
>>
File: stats2.png (38KB, 640x480px) Image search: [Google]
stats2.png
38KB, 640x480px
>>57480632
What do you mean gravity of asteroids? I'm want to try to add inertia to the ships to see how the can handle it
Bonus: stats
>>
>>57478837
>Dota has no simple api or easy way to grab the players state. I would assume you would have to process the screen with some computer vision and then make your machine learn what to do from that. Obviously a more computationally expensive task.
No it doesn't have to. A person well versed with cheatengine will be able to grab pretty much everything from the game and send movement and attack commands. Problem would be that you are more or less cheating at that point since you have more information than a human at that point.
>>
File: seethelight.jpg (20KB, 582x329px) Image search: [Google]
seethelight.jpg
20KB, 582x329px
>>57472601
jesus christ how horrifying
>>
>>57479148
Not if I define it's fitness function to be how much they like me.
>>
so is the neural network code only works on flappy bird and asteroids or can i use it on other things?
>>
>>57481996
The network is not specialized for those games, you can use it on anything
>>
>>57482071
holy shit. studying the code now. i'm too lazy to read books on AI but this might get me interested. Thanks!
>>
This thread reminded me of this video.
https://www.youtube.com/watch?v=qv6UVOQ0F44
>>
>>57478837
>>57481641
You could try StarCraf / StarCraft II. The latter has recently opened up a client API for the purposes of machine learning, and the former has already been the subject of machine learning projects in the past. (google “overmind”)
>>
>>
>>57483279
How do you increase the amount of birds like that?
>>
>>57483369
You dl the repository and you hack into it.
>>
File: flappy-126253.png (21KB, 500x512px) Image search: [Google]
flappy-126253.png
21KB, 500x512px
>>
>200 generations
>flappy bird still dumb as fuck
>>
>>57484020
your CPU might just be retarded m8
>>
File: hard-mode.png (55KB, 500x512px) Image search: [Google]
hard-mode.png
55KB, 500x512px
I reduced the pip hole size from 120 to 90. It's hard for those poor little birds.
>>
>>57484375
Try increasing the density of the pipes.
>>
File: very-hard-mode.png (19KB, 500x512px) Image search: [Google]
very-hard-mode.png
19KB, 500x512px
>>57484537
That's what I just did.
>>
File: 1471524995085.jpg (420KB, 1316x3048px) Image search: [Google]
1471524995085.jpg
420KB, 1316x3048px
>>57472751
>>
>>57484627
Amazing if true.
>>
>>57484722
Quake3 didn't have self-learning AI
>>
>>57484802
Then explain the pic.
>>
>>57484822
either that guy modified his game / server, or he lied on the internet (would you believe people do that??)
>>
>>57484822
He lied and you fell for it.
>>
>>57484836
>>57484842
There's no logical reason why he would lie. I refuse to believe it.
>>
My birds start to survive in very hard mode.
>>
>>57484822
>explain the pic
>it's a 4chan thread
IHBT
>>
inspect element on the x5 button in chrome, go to sources, game.js, and change this one line:

setTimeout(function(){
self.update();
}, 1000/FPS);

to 0 instead of 1000/FPS.

Much MUCH faster learning.

I'm at 30k in 2 minutes.
>>
File: proof.png (25KB, 638x609px) Image search: [Google]
proof.png
25KB, 638x609px
>>57485326

proof
>>
>>57485339
64000 in 46 generations. Your birds are fucking dumb.
>>
>>57484627
>>57484722

https://twitter.com/ID_AA_Carmack/status/352192259418103809
>>
>>57485361
Does it seem like in Flappy Bird that the faster you go the slower they learn?
>>
>>57485450
No. I don't think it's real time. It looks like it's scheduled on frames.
>>
File: firefox_2016-11-12_14-13-54.png (21KB, 503x516px) Image search: [Google]
firefox_2016-11-12_14-13-54.png
21KB, 503x516px
Still going strong
Thread posts: 84
Thread images: 19


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.