Package me.damoebe.architectures.mlp
Klasse EvolutionNetwork
java.lang.Object
me.damoebe.architectures.Network
me.damoebe.architectures.mlp.FFNetwork
me.damoebe.architectures.mlp.EvolutionNetwork
-
Feldübersicht
Von Klasse geerbte Felder me.damoebe.architectures.mlp.FFNetwork
currentLoss, layers, learningRate, noise -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungEvolutionNetwork(int inputSize, int outputSize, int hiddenLayerSize, int hiddenLayerAmount) Main constructor for EvolutionNetwork accessing the super constructor of FFNetwork abstract class -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungclone()A method for cloning a FFNetwork objectvoidFinishes an epoch by saving potential success and mutating connection weightsdoubleGets the network lossvoidThe abstract train functionvoidupdateLoss(List<Double> optimalActivations) Updates the current network loss and adds loss to epoch loss listVon Klasse geerbte Methoden me.damoebe.architectures.mlp.FFNetwork
generateLayer, getHiddenLayerAmount, getHiddenLayerSize, getInputSize, getLayers, getOutput, getOutputSize, insertInput, setNoise, updateAllActivationsVon Klasse geerbte Methoden me.damoebe.architectures.Network
loadNetworkFromJson, loadToJsonFile
-
Konstruktordetails
-
EvolutionNetwork
public EvolutionNetwork(int inputSize, int outputSize, int hiddenLayerSize, int hiddenLayerAmount) Main constructor for EvolutionNetwork accessing the super constructor of FFNetwork abstract class- Parameter:
inputSize- The size of the first layeroutputSize- The size of the last layerhiddenLayerSize- The size of the hiddenlayershiddenLayerAmount- The amount of hiddenlayers that should be generated
-
-
Methodendetails
-
train
-
updateLoss
Updates the current network loss and adds loss to epoch loss list- Setzt außer Kraft:
updateLossin KlasseFFNetwork- Parameter:
optimalActivations- The target activations for the current repetition
-
finishEpoch
public void finishEpoch()Finishes an epoch by saving potential success and mutating connection weights -
getNetworkLoss
public double getNetworkLoss()Beschreibung aus Klasse kopiert:FFNetworkGets the network loss- Angegeben von:
getNetworkLossin KlasseFFNetwork- Gibt zurück:
- The network loss double
-
clone
-