TfannLayer constructor
TfannLayer(
- int inputs,
- int outputs,
- ActivationFunctionType activationFuncType
Implementation
TfannLayer(int inputs, int outputs, ActivationFunctionType activationFuncType)
: bias = FVector.fromList(
List.generate(outputs, (index) => RandomSupply.nextBias())),
weights = FLeftMatrix.fromList(List.generate(outputs,
(o) => List.generate(inputs, (i) => RandomSupply.nextWeight()))),
activationFunc = mapActivationFunction[activationFuncType]!;