OnnxEvalSearch

dicechess.engine.search.OnnxEvalSearch
See theOnnxEvalSearch companion class

Attributes

Companion
class
Source
OnnxEvalSearch.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def fromPackage(pkg: ModelPackage): Either[String, OnnxEvalSearch]

Opens a validated model package as a one-ply bot: the extractor comes from the manifest's feature schema, and the loaded graph is checked against the manifest before the instance is returned.

Opens a validated model package as a one-ply bot: the extractor comes from the manifest's feature schema, and the loaded graph is checked against the manifest before the instance is returned.

This is the documented way to get the graph check for a bot built by hand. A mismatch closes the session and comes back as Left rather than surfacing at the first inference, which is the whole point of the contract — ModelPackage.load proves what the manifest says, this proves the graph agrees with it.

Attributes

Source
OnnxEvalSearch.scala