RootRescoreModel

dicechess.engine.search.RootRescoreModel
See theRootRescoreModel companion object
final case class RootRescoreModel(modelPath: String, extractFeatures: (GameState, Color) => Array[Float], weight: Double, contract: Option[ModelManifest] = ...)

A second ONNX model that rescores ExpectimaxSearch's root candidates (see RootRescore) rather than evaluating chance-node leaves — a tactically sharp but leaf-prohibitive model (e.g. trained on dicechess.engine.search.KcpFeatures) that only the handful of root candidates can afford.

Value parameters

extractFeatures

the rescoring model's own feature extractor — need not match the main model's

modelPath

path to the rescoring model, independent of the main model

weight

blend weight, forwarded to RootRescore ([0, 1]). Zero disables rescoring before a second ONNX session is created.

Attributes

Companion
object
Source
OnnxExpectimaxSearch.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product