public override void SetUp() { targetNeuralNetwork.Init(); threadNeuralNetwork = new _NeuralNetwork(); threadNeuralNetwork.Init(targetNeuralNetwork); agentTransform.transform.position = startPosition; }
public void Init(_NeuralNetwork targetNet) { W_DW_conv1 = (double[, , ])targetNet.W_DW_conv1.Clone(); PW_conv1 = (double[, , , ])targetNet.PW_conv1.Clone(); W_DW_conv2 = (double[, , ])targetNet.W_DW_conv2.Clone(); PW_conv2 = (double[, , , ])targetNet.PW_conv2.Clone(); W_DW_conv3 = (double[, , ])targetNet.W_DW_conv2.Clone(); PW_conv3 = (double[, , , ])targetNet.PW_conv2.Clone(); W_fc_1 = (double[, ])targetNet.W_fc_1.Clone(); W_fc_2 = (double[, ])targetNet.W_fc_2.Clone(); }