Class StandardBackpropagation
- java.lang.Object
-
- libai.nn.supervised.backpropagation.StandardBackpropagation
-
- All Implemented Interfaces:
Backpropagation
- Direct Known Subclasses:
MomentumBackpropagation,ResilientBackpropagation
public class StandardBackpropagation extends java.lang.Object implements Backpropagation
Created by kronenthaler on 08/01/2017.
-
-
Field Summary
Fields Modifier and Type Field Description protected Column[]bprotected Column[]dprotected Function[]funcprotected intlayersprotected Matrix[]Mprotected NeuralNetworknnprotected int[]nperlayerprotected Column[]uprotected Matrix[]Wprotected Column[]Yprotected Row[]Yt
-
Constructor Summary
Constructors Constructor Description StandardBackpropagation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(NeuralNetwork nn, int[] nperlayer, Function[] functions, Matrix[] W, Column[] Y, Column[] b, Column[] u)Initializes the Backpropagation algorithm with the basic structures needed.voidtrain(Column[] patterns, Column[] answers, double alpha, int epochs, int offset, int length, double minerror)Trains a neural network using the backpropagation implementaion.
-
-
-
Method Detail
-
initialize
public void initialize(NeuralNetwork nn, int[] nperlayer, Function[] functions, Matrix[] W, Column[] Y, Column[] b, Column[] u)
Description copied from interface:BackpropagationInitializes the Backpropagation algorithm with the basic structures needed. This method usually should be called in the NeuralNetwork's train method right before calling the Backpropagation's train method.- Specified by:
initializein interfaceBackpropagation
-
train
public void train(Column[] patterns, Column[] answers, double alpha, int epochs, int offset, int length, double minerror)
Description copied from interface:BackpropagationTrains a neural network using the backpropagation implementaion.- Specified by:
trainin interfaceBackpropagation
-
-