ModelPackage

dicechess.engine.model.ModelPackage
See theModelPackage companion class
object ModelPackage

Attributes

Companion
class
Source
ModelPackage.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def load(directory: Path, engineVersion: String, expectedRole: Option[ModelRole] = ...): Either[String, ModelPackage]

Loads /model.onnx + /manifest.json — the layout a trained candidate ships in.

Loads /model.onnx + /manifest.json — the layout a trained candidate ships in.

Attributes

Source
ModelPackage.scala
def loadFiles(modelPath: Path, manifestPath: Path, engineVersion: String, expectedRole: Option[ModelRole] = ...): Either[String, ModelPackage]

Loads a model and manifest that do not sit in a package directory — an arena runner pointed at two paths, or a fixture pair in a test resource tree.

Loads a model and manifest that do not sit in a package directory — an arena runner pointed at two paths, or a fixture pair in a test resource tree.

expectedRole is what turns the role field from metadata into a gate: the caller states which hook it is about to wire, and an artifact trained for a different question is refused here rather than silently scored.

Attributes

Source
ModelPackage.scala

Concrete fields

val ManifestFileName: String

Attributes

Source
ModelPackage.scala
val ModelFileName: String

File names inside a package directory, as the training repository's candidate builder publishes them.

File names inside a package directory, as the training repository's candidate builder publishes them.

Attributes

Source
ModelPackage.scala