Documentation
¶
Overview ¶
Package parity implements a parity layer and combiner
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parity ¶
type Parity struct {
// contains filtered or unexported fields
}
func (*Parity) Disregard ¶
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.
type ParityLayer ¶
type ParityLayer struct {
// contains filtered or unexported fields
}
func MustNew ¶
func MustNew(size int) *ParityLayer
MustNew creates a new full layer with size and bits
func New ¶
func New(size int) (o *ParityLayer, err error)
New creates a new full layer with size and bits
func (*ParityLayer) Lay ¶
func (i *ParityLayer) Lay() layer.Combiner
Lay turns full layer into a combiner
Click to show internal directories.
Click to hide internal directories.