Class/Object

io.github.mandar2812.dynaml.graph

FFNeuralGraph

Related Docs: object FFNeuralGraph | package graph

Permalink

class FFNeuralGraph extends NeuralGraph[FramedGraph[Graph], DenseVector[Double], DenseVector[Double]]

Represents the underlying graph of a feed-forward neural network.

Linear Supertypes
NeuralGraph[FramedGraph[Graph], DenseVector[Double], DenseVector[Double]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FFNeuralGraph
  2. NeuralGraph
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FFNeuralGraph(baseGraph: FramedGraph[Graph], act: List[String], hidden: Int = 1)

    Permalink

    baseGraph

    The base graph object, FFNeuralGraph encapsulates an existing graph object of type FramedGraph and builds upon it by defining a set of behaviours expected from Neural Network graphs

    act

    A list of Strings containing the activations for each layer. Options for activation functions are: 1) "logsig" or "sigmoid" 2) "tansig" 3) "linear" 4) "recLinear"

    hidden

    The number of hidden layers in the network.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val activations: List[String]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. val forwardPass: (DenseVector[Double]) ⇒ DenseVector[Double]

    Permalink

    Perform a forward pass through the network to calculate the predicted output.

    Perform a forward pass through the network to calculate the predicted output.

    Definition Classes
    FFNeuralGraphNeuralGraph
  11. val g: FramedGraph[Graph]

    Permalink
    Attributes
    protected
    Definition Classes
    FFNeuralGraphNeuralGraph
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getLayer(layer: Int): Iterable[Neuron]

    Permalink

    Get as a scala Iterable the neurons for a particular layer.

    Get as a scala Iterable the neurons for a particular layer.

    layer

    The layer number, can vary from 0 (input layer) to hidden_layers + 1 (output layer)

    returns

    The neurons in the particular layer as Neuron objects

  14. def getLayerSynapses(layer: Int): Iterable[Synapse]

    Permalink

    Get as a scala Iterable the synapses between layer l and l-1.

    Get as a scala Iterable the synapses between layer l and l-1.

    layer

    The layer number, can vary from 1 (input layer synapses) to hidden_layers + 1 (output layer synapses)

    returns

    The respective synapses as Synapse objects

  15. def getSynapsesAsMatrix(layer: Int): DenseMatrix[Double]

    Permalink

    Get as a breeze DenseMatrix the synapses between layer l and l-1.

    Get as a breeze DenseMatrix the synapses between layer l and l-1.

    layer

    The layer number, can vary from 1 (input layer synapses) to hidden_layers + 1 (output layer synapses)

    returns

    The respective synapses as elements of a matrix

  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. val hidden_layers: Int

    Permalink
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val num_inputs: Int

    Permalink
  23. val num_outputs: Int

    Permalink
  24. def predictBatch(procInputs: List[List[Double]]): Map[Int, Map[Int, Double]]

    Permalink

    Perform a forward pass through the network to calculate the predicted output for a batch of input points.

    Perform a forward pass through the network to calculate the predicted output for a batch of input points.

    procInputs

    The input batch as a List of Lists where each level of the top level List represents an input node. On the other hand each element of the lower level list represents a particular dimension of a particular data point in the data set.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from NeuralGraph[FramedGraph[Graph], DenseVector[Double], DenseVector[Double]]

Inherited from AnyRef

Inherited from Any

Ungrouped