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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article