gpt4 book ai didi

python - 我可以使用 Scikit learn 和 autopy 来玩电子游戏吗?

转载 作者:太空宇宙 更新时间:2023-11-04 05:36:31 25 4
gpt4 key购买 nike

我知道这是一个非常广泛的问题,但我正在学习数据科学,我已经阅读了几天,但我找不到任何关于如何使用 python 操作视频游戏的信息。

我可以使用 autopy 和 scikit-learn 来制作类似的东西吗?

MarI/O

最佳答案

好吧,从 source 中可以消化什么? ,这是神经网络和遗传算法实现的结合。作者的做法在源文件的head中有描述:

-- Intended for use with the BizHawk emulator and Super Mario World or Super Mario Bros. ROM.

-- For SMW, make sure you have a save state named "DP1.state" at the beginning of a level,

-- and put a copy in both the Lua folder and the root directory of BizHawk.

在python中遵循这种方法似乎没有问题。您可以从作者的代码中获得灵感,甚至可以使用像 pyevolve 这样的预打包解决方案。用于 python 中的遗传算法实现。

关于python - 我可以使用 Scikit learn 和 autopy 来玩电子游戏吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35431154/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com