arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.14372cs.AI
收藏

Ludii中的Python智能体

Python Agent in Ludii

Instituto de Informática(信息学院);Universidade Federal do Rio Grande do Sul(南里奥格兰德联邦大学)

Izaias S. de Lima Neto, Marco A. A. de Aguiar Vieira, Anderson R. Tavares

AI总结:

本文为Java通用游戏系统Ludii开发了Python智能体编程接口,通过jpy和Py4J两种库实现,并对Minimax和MCTS算法进行性能分析,发现jpy比Py4J更快但仍慢于原生Java智能体。

摘要:

Ludii是一个Java通用游戏系统,包含大量棋盘游戏,提供用于开发新智能体的API和用于创建新游戏的游戏描述语言。为了提高通用性并简化开发,我们提供了用于智能体编程的Python接口。这允许使用Python模块来实现通用游戏智能体。作为支持使用Python创建Ludii智能体的手段,这些接口使用不同的Java库实现:jpy和Py4J。本研究的主要目标是确定哪个版本更快。为此,我们对两种不同的GGP算法,即适应于GGP的Minimax和MCTS,进行了性能分析。该分析在多款具有不同深度、分支因子和回合时间的组合博弈上进行。为了保证可复现性,我们提供了教程和代码库。我们的分析包括使用回归的预测模型,结果表明jpy比Py4J更快,但正如预期的那样,比原生Java Ludii智能体慢。

英文摘要:

Ludii is a Java general game system with a considerable number of board games, with an API for developing new agents and a game description language to create new games. To improve versatility and ease development, we provide Python interfaces for agent programming. This allows the use of Python modules to implement general game playing agents. As a means of enabling Python for creating Ludii agents, the interfaces are implemented using different Java libraries: jpy and Py4J. The main goal of this work is to determine which version is faster. To do so, we conducted a performance analysis of two different GGP algorithms, Minimax adapted to GGP and MCTS. The analysis was performed across several combinatorial games with varying depth, branching factor, and ply time. For reproducibility, we provide tutorials and repositories. Our analysis includes predictive models using regression, which suggest that jpy is faster than Py4J, however slower than a native Java Ludii agent, as expected.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑