private ExplicitNeuralNetworkBuilder(
     NeuralNetworkContext context,
     IProvideRandomNumberGeneration randomNumberGenerator)
 {
     this.randomNumberGenerator = randomNumberGenerator;
     this.context = context;
 }
示例#2
0
 public TTester NeuralNetworkEnvironment(
     NeuralNetworkContext context,
     IProvideRandomNumberGeneration randomGenerator)
 {
     this.context         = context;
     this.randomGenerator = randomGenerator;
     return((TTester)this);
 }
 public BiasNeuron(
     NeuralNetworkContext context,
     IProvideNeuronActivation activationFunction,
     double constantOutput)
     : base(context, activationFunction)
 {
     Output = constantOutput;
 }
 public SynapseBuilder(
     NeuralNetworkContext context,
     IDictionary <int, Neuron> allNeuronsInNetwork,
     IProvideRandomNumberGeneration randomGenerator)
 {
     this.context             = context;
     this.randomGenerator     = randomGenerator;
     this.allNeuronsInNetwork = allNeuronsInNetwork;
 }
 public NeuralNetworksController(NeuralNetworkContext context)
 {
     _context = context;
 }
 public static BiasNeuron For(
     NeuralNetworkContext context,
     ActivationType activationType,
     double constantOutput)
 => new BiasNeuron(context, activationType.ToNeuronActivationProvider(), constantOutput);
示例#7
0
 public BiasNeuronBuilder(NeuralNetworkContext context)
     : base(context)
 {
 }
示例#8
0
 protected AbstractNeuronBuilder(NeuralNetworkContext context)
 {
     Context = context;
 }
 public static ExplicitNeuralNetworkBuilder CreateForTest(
     NeuralNetworkContext context,
     IProvideRandomNumberGeneration randomNumberGenerator)
 => new ExplicitNeuralNetworkBuilder(context, randomNumberGenerator);
 public HiddenLayerBuilder(IDictionary <int, Neuron> allNeuronsInNetwork, NeuralNetworkContext context)
     : base(allNeuronsInNetwork, context)
 {
 }
 public LayerBuilder(IDictionary <int, Neuron> allNeuronsInNetwork, NeuralNetworkContext context)
 {
     AllNeuronsInNetwork = allNeuronsInNetwork;
     Context             = context;
 }