public static NeuralNetworkBuilder For(
     NeuralNetworkContext context,
     IProvideRandomNumberGeneration randomNumberGenerater = null)
 {
     randomNumberGenerater = randomNumberGenerater ?? RandomNumberProvider.For(new Random(1));
     return(new NeuralNetworkBuilder(context, randomNumberGenerater));
 }
 private ExplicitNeuralNetworkBuilder(
     NeuralNetworkContext context,
     IProvideRandomNumberGeneration randomNumberGenerator)
 {
     this.randomNumberGenerator = randomNumberGenerator;
     this.context = context;
 }
示例#3
0
 public TTester NeuralNetworkEnvironment(
     NeuralNetworkContext context,
     IProvideRandomNumberGeneration randomGenerator)
 {
     this.context         = context;
     this.randomGenerator = randomGenerator;
     return((TTester)this);
 }
 public SynapseBuilder(
     NeuralNetworkContext context,
     IDictionary <int, Neuron> allNeuronsInNetwork,
     IProvideRandomNumberGeneration randomGenerator)
 {
     this.context             = context;
     this.randomGenerator     = randomGenerator;
     this.allNeuronsInNetwork = allNeuronsInNetwork;
 }
 public NeuralNetworkBuilder(NeuralNetworkContext context, IProvideRandomNumberGeneration randomNumberGenerator)
 {
     this.context = context;
     this.randomNumberGenerator = randomNumberGenerator;
 }
 public static ExplicitNeuralNetworkBuilder CreateForTest(
     NeuralNetworkContext context,
     IProvideRandomNumberGeneration randomNumberGenerator)
 => new ExplicitNeuralNetworkBuilder(context, randomNumberGenerator);