TfannLayer constructor

TfannLayer(
  1. int inputs,
  2. int outputs,
  3. 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]!;