Git Product home page Git Product logo

alphazerosimple's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alphazerosimple's Issues

KeyError: 'num_simulations'

Mr. Varty,

Upon executing "python main.py", I received an error stating, "KeyError: 'num_simulations'". I added "num_simulations: 100" to main.py's argument dictionary, which enabled training. Is this appropriate?

Documentation and comments

Hey,

First of all thanks for the video, post, and the code. I really find it underrated as I went over almost every single resource on AZ. I am still reviewing your code, but I wanted to add the issue as soon as possible. Even though you explain the concepts etc. your code is too dry in terms of explanations, it would be much better if you could add comments as detailed as possible (for people like me who occasionally have problems following up ๐Ÿ˜…). If not I might have time in a couple of weeks to do so if you want (though that still would require you to review it so still better if you add it yourself I guess).

Again Thanks a lot for the effort!

nvidia

1/500
Traceback (most recent call last):
File "main.py", line 27, in
trainer.learn()
File "/home/uu/decy5/inne_nz/AlphaZeroSimple/trainer.py", line 61, in learn
self.train(train_examples)
File "/home/uu/decy5/inne_nz/AlphaZeroSimple/trainer.py", line 83, in train
boards = boards.contiguous().cuda()
File "/home/uu/.local/lib/python3.8/site-packages/torch/cuda/init.py", line 172, in _lazy_init
torch._C._cuda_init()
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

i mn not have nvidia
setup cpu not working too

Setup Kaggle Environment

Hi there,

I found your project on youtube and it is such a good explanation of the alpha zero algorithm. Thank you very much for that! :)
I was wondering if there is some example code how to setup the kaggle environment to play against the agent.

I know you do something like this:

from kaggle_environments import make

# Setup a tictactoe environment.
env = make("tictactoe")

# Basic agent which marks the first available cell.
def my_agent(obs):
  return [c for c in range(len(obs.board)) if obs.board[c] == 0][0]

# Run the basic agent against a default agent which chooses a "random" move.
env.run([my_agent, "random"])

# Render an html ipython replay of the tictactoe game.
env.render(mode="ipython")

But I am currently not 100% sure how to provide the trained connect2 agent, especially with the latest.pth file.

Cheers & thanks again,
Florentin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.