Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryLayer

Memory layer

Hierarchy

Index

Constructors

constructor

  • new MemoryLayer(outputSize: number, options?: { activation?: ActivationType; memorySize?: undefined | number }): MemoryLayer
  • Parameters

    • outputSize: number
    • Default value options: { activation?: ActivationType; memorySize?: undefined | number } = {}
      • Optional activation?: ActivationType

        The activation type for the output nodes of this layer.

      • Optional memorySize?: undefined | number

        The size of the memory.

    Returns MemoryLayer

Properties

Readonly connections

connections: Connection[]

All connections in this layer.

Readonly gates

gates: Connection[]

All gates in this layer.

Readonly inputNodes

inputNodes: Set<Node>

The nodes which gets connected to the previous layer.

Readonly nodes

nodes: Node[]

All nodes in this layer.

outputNodes

outputNodes: Set<Node>

The nodes which gets connected to the next layer.

Readonly outputSize

outputSize: number

The output size of the layer.

Methods

connectionTypeisAllowed

  • connectionTypeisAllowed(): boolean

getDefaultIncomingConnectionType

Static connect

Static gate

Generated using TypeDoc