Class Feedforward

java.lang.Object
engine.neural.networks.Feedforward
All Implemented Interfaces:
Network, Reconstructible

public class Feedforward extends Object implements Network
"Simple" multi-layer neural network
  • Field Details

    • networkSizes

      private final int[] networkSizes
      Keeps track of the network geometry
    • biases

      private Vector[] biases
    • activations

      private Vector[] activations
    • preActivations

      private Vector[] preActivations
    • weights

      private Matrix[] weights
    • initializer

      private final Initializer initializer
      Variable that tracks the initializer being used
    • activation

      private final Activation activation
      Variable that tracks the activation function being used
    • cost

      private final Cost cost
      Variable that tracks the cost function being used
    • optimizer

      private final Optimizer optimizer
      Variable that tracks the optimizer being used
    • currCost

      private float currCost
      Variable that keeps track of the last cost of the network
  • Constructor Details

    • Feedforward

      public Feedforward(int[] networkSizes, Initializer initializer, Activation activation, Cost cost, Optimizer optimizer)
      Constructs a new multilayer neural network
      Parameters:
      networkSizes - The size of each layer of the network, for instance, [2, 4, 4, 1] has an input of size 2, 2 hidden layers of size 4, and an output of size 1
      initializer - The specific way you want to populate the weights at creation
      activation - The specific way you want neurons to fire
      cost - The specific way you want to show how wrong the network is
      optimizer - The specific way you want to push the network towards minima
    • Feedforward

      public Feedforward(String name) throws Exception
      Throws:
      Exception
  • Method Details