Documentation ¶
Overview ¶
Package expectation implements Expectation to provide transportable expectation primitives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct { // Settings. Output string }
Config represents the configuration used to create a new expectation object.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig provides a default configuration to create a new expectation object by best effort.
type Expectation ¶
type Expectation interface { Equals(expectation Expectation) bool json.Marshaler json.Unmarshaler // Output returns the configured output of the expectation. This output // represents the output which is expected to be calculated by the neural // network. Output() string }
Expectation represents a description of what output is to be expected when requesting calculations by providing some input.
func New ¶
func New(config Config) (Expectation, error)
New creates a new configured expectation object.
Click to show internal directories.
Click to hide internal directories.