[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]

how to utilize software through scripts?

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: 13
Thread images: 2

File: cesaros.jpg (32KB, 862x288px) Image search: [Google]
cesaros.jpg
32KB, 862x288px
Sup /g/?

so we have all seen videos like this one:

https://www.youtube.com/watch?v=Q-WgQcnessA&t=779s

where a machine learning expert constructs a neural network to play some NES game.

This had me thinking of constructing a machine learning algo to play some other simple game like solitaire or some poker app. But then I realized I don't actually know how to utilize software through programming scripts.

They guy in the video utilizes an emulator to save his command inputs in some Movie files in FCEUX and uses these as a training set, and then he writes some code to utilize the software through an algo.

Basically what I am asking /g/ is: can you point me in the direction to learn how to utilize software through programming scripts? any books or courses suggested?

I know some C and python programming and have a math background that allows me to understand the optimization process behind machine learning and backprop.
>>
>>58721251
Bishop's Pattern Recognition and Machine Learning
>>
File: cesaro2.jpg (57KB, 892x436px) Image search: [Google]
cesaro2.jpg
57KB, 892x436px
Bonus question: has anyone made an AI that actually completes a full mario game?
>>
>>58721452
I have read the book and it is excellent, but my question is more on how to utilize software through a script. In what chapter would this be addressed?
>>
>>58721452
I may not have the computer science knowledge to fully convey what I am trying to ask. Please tell me if my question is confusing.
>>
>>58721251
>utilize
use
>>
>>58721251
>>58721452
I guess look into what kind of input your emulation software (if nes game) can take then redirect your own script output through pipes or something.
If you're thinking about interfacing with other games like any web hosted stuff you'd probably need to interface through some web api instead of os filesystem and std input so use your script to interface with command line tools to do that like curl
Alternatively if not sure about what project to do look into stuff tailored for this kind of projects like this starcraft 1 ai tournament
http://sscaitournament.com/
These kind of challenges provide documentation so you don't have to figure out how to interface with the game too much and instead focus on writing your bot

So look into how to interact with your game (or make own game), learn related technologies

Also do you have some pointers on how to get into machine learning that's be nice
>>
>>58722689
also the guy in op video seems to have a pretty good doc on how to reproduce his work so maybe just use his api to play nes games
>>
You have to understand how the assembly language of the target program functions.
>>
>>58723002
Could you expand a little bit on this or give some reference on which to learn?
>>
>>58722689
See for example I don't know what pipes are. Or how to interface through a web api, how could I get these skills?


To get into machine learning you can try as an introduction to follow the stanford course on youtube: https://www.youtube.com/watch?v=UzxYlbK2c7E they also have lecture notes available online.

then the text by byshop is a standard.
>>
>>58721251
haha, this is a great video, i'm gonna have to watch more of this guy's stuff thx anon
>>
>>58723603
Thanks for the link

Pipes are command line tools to direct output from one process to another's input. If your game can take input from commad line or through filesystem you could make a bash script to use command line tools to direct instructions from your program to the game. Bash scripts are common tools so to learn how to use them just search for some tutorial or random book to get the basics then google commands as you go along.
Web apis are interfaces to communicate with web servers using network protocols like http, so basically you'd send http requests to the game server which would interpret them, much like your browser does when you click on a link. You can send such requests using command line tools like curl for quick and easy scripting or use your programming language's http library.

The problem comes down to indentifying which game you want to work with, identify ways to play it programatically then learn some basics on how to use the tools needed to do so.
Also if you know some c and python you could try and implement your own basic game to mess around with, this way you can define your own interface.
hope this helps
Thread posts: 13
Thread images: 2


[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.