eval

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluationService

type EvaluationService struct {
	WeightList
	// contains filtered or unexported fields
}

func NewEvaluationService

func NewEvaluationService() *EvaluationService

func (*EvaluationService) ComputeFeatures added in v1.55.0

func (e *EvaluationService) ComputeFeatures(pos *Position) domain.TuneEntry

func (*EvaluationService) EnableTuning added in v1.55.0

func (e *EvaluationService) EnableTuning()

func (*EvaluationService) Evaluate

func (e *EvaluationService) Evaluate(p *Position) int

func (*EvaluationService) StartingWeights added in v1.55.0

func (e *EvaluationService) StartingWeights() []float64

type Score

type Score int64

func S added in v1.55.0

func S(middle, end int) Score

func (Score) Eg

func (s Score) Eg() int

func (Score) Mg

func (s Score) Mg() int

func (Score) String

func (s Score) String() string

type WeightList added in v1.55.0

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

func (*WeightList) Features added in v1.55.0

func (wl *WeightList) Features() []domain.FeatureInfo

func (*WeightList) InitWeights added in v1.55.0

func (wl *WeightList) InitWeights(w []int)

func (*WeightList) Value added in v1.55.0

func (wl *WeightList) Value(index, n int) Score

Jump to

Keyboard shortcuts

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