preprocess

package
v0.0.0-...-599284e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const BATCH_SIZE = 1e6
View Source
const BUCKET_NAME = "chessbot"
View Source
const CHAN_BUFFER = 1e4
View Source
const DIMENSION = 8*8*12 + 1
View Source
const KEY_FORMAT = "input/%v.msgp.gz"

Variables

This section is empty.

Functions

func ExportFeaturesToS3

func ExportFeaturesToS3(sess *session.Session, done <-chan struct{}, featureChannels ...<-chan *BoardFeaturesAndResult)

func YieldBoardFeaturesAndResult

func YieldBoardFeaturesAndResult(urls <-chan string, done <-chan struct{}) <-chan *BoardFeaturesAndResult

Types

type BoardFeaturesAndResult

type BoardFeaturesAndResult [DIMENSION]uint8

func (*BoardFeaturesAndResult) DecodeMsg

func (z *BoardFeaturesAndResult) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*BoardFeaturesAndResult) EncodeMsg

func (z *BoardFeaturesAndResult) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*BoardFeaturesAndResult) Msgsize

func (z *BoardFeaturesAndResult) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

Jump to

Keyboard shortcuts

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