bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] gnubg-nn buildnet.py


From: Joseph Heled
Subject: [Bug-gnubg] gnubg-nn buildnet.py
Date: Thu, 24 Jun 2004 08:23:14 +1200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616


I made some small changes and added the scripts/train/buildnet.py script. This is undoubtedly the most important script, which builds a new net from scratch using an existing net.

There are lots of flags, but here is the minimal invocation,

buildnet.py [-v] [--class crashed|contact|race] the-good-net.weights name-of-data-file name-of-benchmark-file

Before you start, you need to supply an itial net in 'gnubg.weights.best.00' (in the same directory). One simple way to start frpm scratch is to start pygnug and give the following commands (say for race net)

$pygnubg
Python 2.3 (#1, Jul 30 2003, 13:52:18)
[GCC 3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> gnubg.net.init(gnubg.c_race)
>>> gnubg.net.save("gnubg.weights.best.00")
>>>
$


-Joseph





reply via email to

[Prev in Thread] Current Thread [Next in Thread]