full

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: 1 Imported by: 0

Documentation

Overview

Package full implements a fully connected layer and combiner

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Full

type Full struct {
	// contains filtered or unexported fields
}

func (*Full) Disregard

func (f *Full) Disregard(n int) bool

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.

func (*Full) Feature

func (f *Full) Feature(n int) (o uint32)

Feature returns the n-th feature from the combiner. Next layer reads its inputs using this method for hashtron n in the next layer.

func (*Full) Put

func (f *Full) Put(n int, v bool)

Put inserts a boolean at position n.

type FullLayer

type FullLayer struct {
	// contains filtered or unexported fields
}

func MustNew

func MustNew(size int, bits, maxbits byte) *FullLayer

MustNew creates a new full layer with size and bits

func New

func New(size int, bits, maxbits byte) (o *FullLayer, err error)

New creates a new full layer with size and bits

func (*FullLayer) Lay

func (i *FullLayer) Lay() layer.Combiner

Lay turns full layer into a combiner

Jump to

Keyboard shortcuts

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