Documentation ¶
Index ¶
- Constants
- type EvaluationService
- func (e *EvaluationService) Evaluate(p *Position) int
- func (e *EvaluationService) EvaluateQuick(p *Position) int
- func (e *EvaluationService) Init(p *Position)
- func (e *EvaluationService) MakeMove(p *Position, m Move)
- func (e *EvaluationService) QuickFeed() float32
- func (e *EvaluationService) UnmakeMove()
- func (e *EvaluationService) UpdateHidden()
- type Updates
- type Weights
Constants ¶
View Source
const ( InputSize = 64 * 12 HiddenSize = 512 )
View Source
const ( Add = 1 Remove = -Add )
View Source
const AvxInstructions = false
View Source
const MaxHeight = 128
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvaluationService ¶
type EvaluationService struct { *Weights // contains filtered or unexported fields }
func NewDefaultEvaluationService ¶ added in v1.55.0
func NewDefaultEvaluationService() *EvaluationService
TODO return err
func NewEvaluationService ¶
func NewEvaluationService(weights *Weights) *EvaluationService
func (*EvaluationService) Evaluate ¶
func (e *EvaluationService) Evaluate(p *Position) int
func (*EvaluationService) EvaluateQuick ¶
func (e *EvaluationService) EvaluateQuick(p *Position) int
func (*EvaluationService) Init ¶
func (e *EvaluationService) Init(p *Position)
func (*EvaluationService) MakeMove ¶
func (e *EvaluationService) MakeMove(p *Position, m Move)
func (*EvaluationService) QuickFeed ¶
func (e *EvaluationService) QuickFeed() float32
func (*EvaluationService) UnmakeMove ¶
func (e *EvaluationService) UnmakeMove()
func (*EvaluationService) UpdateHidden ¶
func (e *EvaluationService) UpdateHidden()
type Weights ¶
type Weights struct { HiddenWeights [InputSize * HiddenSize]float32 HiddenBiases [HiddenSize]float32 OutputWeights [HiddenSize]float32 OutputBias float32 }
Click to show internal directories.
Click to hide internal directories.