expectation

package module
v0.0.0-...-101dddb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2017 License: BSD-3-Clause Imports: 3 Imported by: 1

README

maturity build status GoDoc

expectation

The expectation package implements an object to provide transportable expectation primitives.

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

func IsInvalidConfig(err error) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL