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[]
b
protected Column[]
d
protected Function[]
func
protected int
layers
protected Matrix[]
M
protected NeuralNetwork
nn
protected int[]
nperlayer
protected Column[]
u
protected Matrix[]
W
protected Column[]
Y
protected Row[]
Yt
-
Constructor Summary
Constructors Constructor Description StandardBackpropagation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(NeuralNetwork nn, int[] nperlayer, Function[] functions, Matrix[] W, Column[] Y, Column[] b, Column[] u)
Initializes the Backpropagation algorithm with the basic structures needed.void
train(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:Backpropagation
Initializes 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:
initialize
in interfaceBackpropagation
-
train
public void train(Column[] patterns, Column[] answers, double alpha, int epochs, int offset, int length, double minerror)
Description copied from interface:Backpropagation
Trains a neural network using the backpropagation implementaion.- Specified by:
train
in interfaceBackpropagation
-
-