supervised learning

604 views
Skip to first unread message

Denis Karpitskiy

unread,
Jun 27, 2020, 7:04:59 AM6/27/20
to LCZero
Hi chess friends!
I'm beginner here!
Can someone explain me is it possible to run supervised learning from pgn?
May be there is another way to  run supervised learning from pgn?
Thanks in advance!

Brian Richardson

unread,
Jun 27, 2020, 11:12:07 AM6/27/20
to LCZero
Did you run the trainingdata-tool.exe to convert the pgn games to the input file format that is needed for train.py?

Denis Karpitskiy

unread,
Jun 27, 2020, 1:34:27 PM6/27/20
to LCZero
yes i ran trainingdata-tool.exe converted pgn got folder supevised-0 with ..gz files inside.
Next i ran  command:
!"/content/gdrive/My Drive/LeelaChessZ/lczero-training-master/tf/train.py" --cfg "/content/gdrive/My Drive/LeelaChessZ/lczero-training-master/tf/configs/example.yaml" --output "/content/gdrive/My Drive/LeelaChessZ/lczero-training-master/tf/tmp/mymodel4.txt"

and got an error:

File "/content/gdrive/My Drive/LeelaChessZ/lczero-training-master/tf/net.py", line 7, in <module> import proto.net_pb2 as pb
ModuleNotFoundError: No module named 'proto'

I do exactly according to the guide that I mentioned above...
Now I don't understand what should I do ...

суббота, 27 июня 2020 г., 19:12:07 UTC+4 пользователь Brian Richardson написал:

Brian Richardson

unread,
Jun 27, 2020, 3:04:57 PM6/27/20
to LCZero
Yes, there is another step not mentioned in those instructions.
From part of another SL instructions page:

From lczero-common page download lczero-common-master.zip file.
Unzip both files preserving directory structure.
Compile chunk.proto and net.proto files with protobuf compiler protoc - see init.sh for details.
As result uoy get two .py files in subdirectory tf\proto.

OR you can try this file and unzip in your tf directory.
It may work for you; otherwise, more steps about compiling the protobuf files and the sub-directories needed.
I always have trouble finding them (they are out there somewhere, or you can as in the Discord #help channel).

Once you get it working, unless there is a major format change, I just copy the proto directory if there are other updates.


proto.zip

Denis Karpitskiy

unread,
Jun 28, 2020, 11:11:34 PM6/28/20
to LCZero
Very helpful, now it is work!
Thanks a lot!

Nicholas

unread,
Dec 29, 2020, 11:34:55 PM12/29/20
to LCZero
Hi dennis Hi I am trying to build my own Leela Model and cannot download the exe training tool from the github website (https://github.com/DanielUranga/trainingdata-tool/tree/master) or https://ci.appveyor.com/project/DanielUranga/trainingdata-tool/build/artifacts

Any chance you could share the training tool.exe file via download link?

Thanks
Reply all
Reply to author
Forward
0 new messages