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 ¶
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 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.