Versions in this module Expand all Collapse all v0 v0.1.1 Jan 18, 2021 v0.1.0 Jan 14, 2021 Changes in this version + var Float = G.Float32 + func Train(d *Dual, Xs, policies, values *tensor.Dense, batches, iterations int) error + type Config struct + ActionSpace int + BatchSize int + FC int + Features int + FwdOnly bool + Height int + K int + L2 float64 + SharedLayers int + Width int + func DefaultConf(m, n, actionSpace int) Config + func (conf Config) IsValid() bool + type Dual struct + V *G.Node + Π *G.Node + func New(conf Config) *Dual + func (d *Dual) Clone() (*Dual, error) + func (d *Dual) Dual() *Dual + func (d *Dual) GobDecode(p []byte) error + func (d *Dual) GobEncode() (retVal []byte, err error) + func (d *Dual) Init() error + func (d *Dual) Model() G.Nodes + func (d *Dual) SetTesting() + type Inferencer struct + func Infer(d *Dual, actionSpace int, toLog bool) (*Inferencer, error) + func (m *Inferencer) Close() error + func (m *Inferencer) Dual() *Dual + func (m *Inferencer) ExecLog() string + func (m *Inferencer) Infer(board []float32) (policy []float32, value float32, err error)