output

package module
v0.0.0-...-7a72735 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2016 License: BSD-3-Clause Imports: 2 Imported by: 2

README

maturity build status GoDoc

output

The output package implements primitives to distribute output calculated by the neural network. There is an output collection, which bundles different output services in a simple container, which can easily be passed around. An output service provides a communication channel for information sequences.

Documentation

Overview

Package output implements primitives to distribute output calculated by the neural network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Collection

type Collection struct {
	// Public.
	Text Service
}

func NewCollection

func NewCollection(config CollectionConfig) (*Collection, error)

NewCollection creates a new configured collection.

type CollectionConfig

type CollectionConfig struct {
	// Dependencies.
	Channel chan Output
}

CollectionConfig represents the configuration used to create a new collection.

func DefaultCollectionConfig

func DefaultCollectionConfig() CollectionConfig

DefaultCollectionConfig provides a default configuration to create a new collection by best effort.

type Config

type Config struct {
	// Settings.
	Text string
}

Config represents the configuration used to create a new output.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new output by best effort.

type Output

type Output interface {
	Text() string
}

func New

func New(config Config) (Output, error)

New creates a new configured output.

type Service

type Service interface {
	Channel() chan Output
}

Service provides a communication channel to send information sequences.

func NewService

func NewService(config ServiceConfig) (Service, error)

NewService creates a new configured service.

type ServiceConfig

type ServiceConfig struct {
	// Dependencies.
	Channel chan Output
}

ServiceConfig represents the configuration used to create a new service.

func DefaultServiceConfig

func DefaultServiceConfig() ServiceConfig

DefaultServiceConfig provides a default configuration to create a new service by best effort.

Jump to

Keyboard shortcuts

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