tf

package
v0.0.0-...-0992052 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2017 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcTfAnas

func CalcTfAnas(viewPos *game.ViewPos, move *game.Move) (tfAnas [][]*fa.TfAna, moveix int)

CalcTfAnas calculates machine learning flag analysis for every moves and finds the move ix

func MoveHand

func MoveHand(viewPos *game.ViewPos, tfCon *Con) (moveix int)

Move finds the move that compares best to all the other moves.

func PrintGames

func PrintGames(bdb *dbhist.Db, writer io.Writer, gameLimit int)

PrintGames print games for machine learning.

Types

type Con

type Con struct {
	// contains filtered or unexported fields
}

Con a Zmq client connection for tensorflow.

func New

func New(tfaddr string) (tfc *Con, err error)

New create connection.

func (*Con) Close

func (tfc *Con) Close() (err error)

Close close connection.

func (*Con) ReqProba

func (tfc *Con) ReqProba(data []byte, noMoves int) (proba []float64, err error)

ReqProba request probabilities for every possible move.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL