Package me.damoebe.architectures.mlp
Class EvolutionNetwork
java.lang.Object
me.damoebe.architectures.Network
me.damoebe.architectures.mlp.FFNetwork
me.damoebe.architectures.mlp.EvolutionNetwork
-
Field Summary
Fields inherited from class me.damoebe.architectures.mlp.FFNetwork
currentLoss, layers, learningRate, noise -
Constructor Summary
ConstructorsConstructorDescriptionEvolutionNetwork(int inputSize, int outputSize, int hiddenLayerSize, int hiddenLayerAmount) Main constructor for EvolutionNetwork accessing the super constructor of FFNetwork abstract class -
Method Summary
Modifier and TypeMethodDescriptionclone()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 listMethods inherited from class me.damoebe.architectures.mlp.FFNetwork
generateLayer, getHiddenLayerAmount, getHiddenLayerSize, getInputSize, getLayers, getOutput, getOutputSize, insertInput, setNoise, updateAllActivationsMethods inherited from class me.damoebe.architectures.Network
loadNetworkFromJson, loadToJsonFile
-
Constructor Details
-
EvolutionNetwork
public EvolutionNetwork(int inputSize, int outputSize, int hiddenLayerSize, int hiddenLayerAmount) Main constructor for EvolutionNetwork accessing the super constructor of FFNetwork abstract class- Parameters:
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
-
-
Method Details
-
train
-
updateLoss
Updates the current network loss and adds loss to epoch loss list- Overrides:
updateLossin classFFNetwork- Parameters:
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()Description copied from class:FFNetworkGets the network loss- Specified by:
getNetworkLossin classFFNetwork- Returns:
- The network loss double
-
clone
-