Giter Club home page Giter Club logo

Comments (8)

flixpar avatar flixpar commented on June 17, 2024 1

It seems that when I implemented supervised learning it broke the self-play code. I have reverted master to the point where self-play should work and branched the new code to the supervised branch. At some point I will try to update the self-play code to be compatible, but for now just use the new master branch.

from alphatsp.

flixpar avatar flixpar commented on June 17, 2024

All of the code is working and possible to run. Is there something specific that you are having trouble with?

from alphatsp.

michelgokan avatar michelgokan commented on June 17, 2024

@flixpar When I run the code using python3 main.py --experiment selfplay , the first error I'm getting is on the Line 75 in logger.py "TabError: inconsistent use of tabs and spaces in indentation"

But that was okay, I fixed that by replacing spaces with tabs.

Then the next error was on line 73 in experiments/selfplay.py : FileNotFoundError: [Errno 2] No such file or directory: 'saves/loss_parallel.png'. This was also okay, as I created the "saves" directory and it fixed the error (it should create the directory if it's not exists though).

Then the next error was in solvers/policy_networks.py in line 72/73: AttributeError: 'dict' object has no attribute 'x' I checked the file and found out that changing =graph.x, graph.edge_index,gaph.y to =graph['x'], graph['edge_index'], graph['y'] can fix the error.

But then the next error comes up: line 84 , there is no graph.num_nodes .... I tried replacing it with x.size(0) with a great suspicion. Error fixed.

Then I got another error: "RuntimeError: Expected object of device type cuda but got device type cpu for argument #2 'mat2' in call to _th_bmm". I reviewed the code and saw that you sometimes used the device and sometimes you didn't, so I tried to add device everywhere....error fixed. But again, I got another error ..... as so on...

That's why I asked you whether this project is still under the test or not. Maybe I'm doing something wrong, but I'm not sure about it...Any thoughts?

from alphatsp.

michelgokan avatar michelgokan commented on June 17, 2024

@flixpar Thanks. I can't see any changes in the master that solve aforementioned issues. Have you pushed your changes?

from alphatsp.

flixpar avatar flixpar commented on June 17, 2024

The issues you mentioned were caused by changes made when I added supervised learning. To fix the self-play code I didn't need to make any changes, just revert the code to the version before supervised learning was added. At some point I will update the self-play code to make it compatible and improve the multiprocessing but that will take some time. The version of the code in master will run now, but the multiprocessing code for self-play is a bit of a mess and may have minor bugs.

from alphatsp.

flixpar avatar flixpar commented on June 17, 2024

No, github shows master is at commit 50e38d0 rather than d441d86 as it was before.

from alphatsp.

michelgokan avatar michelgokan commented on June 17, 2024

@flixpar I cloned the repo again and it seems everything works fine. Thanks for the response.

from alphatsp.

michelgokan avatar michelgokan commented on June 17, 2024

It's under the test for a day now. I will keep it running during the weekend to see if it'll come up with the results or not...It's not printing any progress just says "Testing..."

from alphatsp.

Related Issues (2)

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.