Class LayerDense
java.lang.Object
com.aidenfavish.javaNeuralNetwork.Layers.LayerDense
- All Implemented Interfaces:
LayerPass
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatfloat -
Constructor Summary
ConstructorsConstructorDescriptionLayerDense(int n_inputs, int n_neurons) LayerDense(int n_inputs, int n_neurons, float[] regulars) LayerDense(Matrix2D theWeights, Matrix2D theBiases, float wr1, float wr2, float br1, float br2) -
Method Summary
-
Field Details
-
weightRegularizerL1
public float weightRegularizerL1 -
weightRegularizerL2
public float weightRegularizerL2 -
biasRegularizerL1
public float biasRegularizerL1 -
biasRegularizerL2
public float biasRegularizerL2 -
weightMomentums
-
weightCache
-
biasMomentums
-
biasCache
-
-
Constructor Details
-
LayerDense
public LayerDense(int n_inputs, int n_neurons) -
LayerDense
public LayerDense(int n_inputs, int n_neurons, float[] regulars) -
LayerDense
-
-
Method Details
-
forward
-
backward
-
getWeights
-
getBiases
-
getDWeights
-
getDBiases
-
getOutput
-
getDInputs
- Specified by:
getDInputsin interfaceLayerPass
-
setWeights
-
setBiases
-
getJSON
public org.json.simple.JSONObject getJSON() -
toString
-