Better HN
topnewbestaskshowjobs
Log inSign up

s-casci

43 karma · joined Dec 20, 2023 (2y ago) · 9 submissions

Submissions

1.

A simple game to have fun while learning more about soft-body physics(github.com ↗)

1 points · by s-casci · 2y ago · discuss

2.

Show HN: Train a GPT to write like Shakespeare-from scratch, in one Python file(gist.github.com ↗)

2 points · by s-casci · 2y ago · discuss

comment 2y ago · link · parent

The policy function outputs the probability of taking every possible (legal or illegal) action. Once you have a way of indexing those actions, both the policy and the game need to refer to the same thing when indexing the same number

comment 2y ago · link · parent

Good catches, I've added the missing information. Thanks

comment 2y ago · link · parent

AlphaZero has been made for perfect information games. That said, the Monte Carlo Tree Search in the library can be run with any agent that implements a value and policy function. So, while the AlphaZeroAgent in agents.py wouldn't fit the problem you are describing, implementing something like Meta's ReBeL (https://ai.meta.com/blog/rebel-a-general-game-playing-ai-bot...) shouldn't be an impossible task. The Monte Carlo Tree Search algorithm in mcts.py has been written to be modular from the start exactly to do something like this!

comment 2y ago · link · parent

Interesting, I didn't know about it... Modifying the existing environments' interfaces shouldn't be too difficult. Feel free to submit a PR!

comment 2y ago · link · parent

There certainly are other projects around AlphaZero, I'd say this is simpler and much more basic

comment 2y ago · link · parent

If you do that, please submit a PR!

9.

Show HN: Easily train AlphaZero-like agents on any environment you want(github.com ↗)

87 points · by s-casci · 2y ago · 21 comments