public NeuralNetwork(R2Tensor ihWeight, R2Tensor ihBias, R2Tensor hoWeight, R2Tensor hoBias, int InputLayer, int HiddenLayer, int OutputLayer) { input = InputLayer; hidden = HiddenLayer; output = OutputLayer; ih_weight = ihWeight.Copy(); ih_bias = ihBias.Copy(); ho_weight = hoWeight.Copy(); ho_bias = hoBias.Copy(); }
public NeuralNetwork Copy() { NeuralNetwork nn_out = new NeuralNetwork(input, hidden, output, outtype); nn_out.ih_weight = ih_weight.Copy(); nn_out.ih_bias = ih_bias.Copy(); nn_out.ho_weight = ho_weight.Copy(); nn_out.ho_bias = ho_bias.Copy(); return(nn_out); }