elo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendStats

func AppendStats(statsFile string, result *npb.BenchmarkResult) error

AppendStats appends result to the JSONlines statsFile.

func ReadResults

func ReadResults(statsFile string) ([]*npb.BenchmarkResult, error)

Types

type Rating

type Rating struct {
	Key    *hexzpb.ModelKey
	Games  int
	Wins   int
	Draws  int
	Rating float64
}

func BradleyTerry

func BradleyTerry(results []*npb.BenchmarkResult) ([]*Rating, error)

func Ratings

func Ratings(results []*npb.BenchmarkResult) []*Rating

Jump to

Keyboard shortcuts

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