layer

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package layer defines a custom combiner and layer interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Combiner

type Combiner interface {

	// Put inserts a boolean at position n.
	Put(n int, v bool)

	// Feature returns the n-th feature from the combiner. Next layer reads
	// its inputs using this method for hashtron n in the next layer.
	Feature(n int) (o uint32)

	// Disregard tells whether putting value false at position n would not affect
	// any feature output (as opposed to putting value true at position n).
	// This excludes training samples early which would have no impact,
	// because the next layer would see the same thing regardless of what we put.
	Disregard(n int) bool
}

Combiner combines input booleans, stores them internally, and combines them to form output features.

type Layer

type Layer interface {

	// Lay creates a combiner
	Lay() Combiner
}

Layer is the layer which can be used for instantiating a combiner

Directories

Path Synopsis
Package conv2d implements a 2D bit-convolution layer and combiner
Package conv2d implements a 2D bit-convolution layer and combiner
Package full implements a fully connected layer and combiner
Package full implements a fully connected layer and combiner
Package majpool2d implements a 2D majority pooling layer and combiner
Package majpool2d implements a 2D majority pooling layer and combiner

Jump to

Keyboard shortcuts

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