Post subject: Apply machine learning in Bizhawk
HeyRay
They/Them
Joined: 9/11/2018
Posts: 1
I'm using Bizhawk on Windows and want to apply some ml methods to games using python or lua. However, I always fail to require torch in lua, so I want to get data into python. Is there any great way to make it? Or how to install torch into Bizhawk lua enviornment? I tried a lot. Thanks in advance!
dan
He/Him
Joined: 9/23/2016
Posts: 25
You might want to have a look at a Youtube video called "MarI/O - Machine Learning for Video Games" by Seth Bling. There are actually a couple machine learning examples when you Google the title. The initial video also has a link to the lua file used in the description. As for integrating torch into Bizhawk however, I have no idea about that.
endrift
Any
Emulator Coder
Joined: 12/14/2014
Posts: 161
If you'll pardon me shilling my work you may also consider looking into Gym Retro, which is designed for this (though it's not directly compatible with BizHawk).
Post subject: Re: Apply machine learning in Bizhawk
Joined: 8/9/2009
Posts: 5
HeyRay wrote:
I'm using Bizhawk on Windows and want to apply some ml methods to games using python or lua. However, I always fail to require torch in lua, so I want to get data into python. Is there any great way to make it? Or how to install torch into Bizhawk lua enviornment? I tried a lot. Thanks in advance!
The most reliable way I've found to get this working is use sockets to have LUA act as sort of an API for Python. I was able to successfully do this using ZMQ, and knew nothing about socket programming (or LUA) when I tried. It'd be nice to have a standardized way to do this, but it isn't a huge obstacle.