Package schule.ngb.zm.ml
Class NeuronLayer
java.lang.Object
schule.ngb.zm.ml.NeuronLayer
Implementierung einer Neuronenebene in einem Neuonalen Netz.
Eine Ebene besteht aus einer Anzahl an Neuronen die jeweils eine Anzahl Eingänge haben. Die Eingänge erhalten als Signal die Ausgabe der vorherigen Ebene und berechnen die Ausgabe des jeweiligen Neurons.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidconnect(NeuronLayer prev, NeuronLayer next) static NeuronLayerfromArray(double[][] weights, boolean transpose) static NeuronLayerfromArray(double[][] weights, double[] biases, boolean transpose) intintbooleanbooleanvoidsetNextLayer(NeuronLayer pNextLayer) voidsetPreviousLayer(NeuronLayer pPreviousLayer) voidsetWeights(MLMatrix newWeights) toString()
-
Constructor Details
-
NeuronLayer
public NeuronLayer(int neurons, int inputs)
-
-
Method Details
-
fromArray
-
fromArray
-
connect
-
getPreviousLayer
-
hasPreviousLayer
public boolean hasPreviousLayer() -
setPreviousLayer
-
getNextLayer
-
hasNextLayer
public boolean hasNextLayer() -
setNextLayer
-
getWeights
-
getBiases
-
getNeuronCount
public int getNeuronCount() -
getInputCount
public int getInputCount() -
getLastOutput
-
setWeights
-
toString
-
apply
-
compose
-
andThen
-
backprop
-