public void TestWeightSections() { var shp = new MultiLayerPerception.Shape { hiddenSize = 2, inputSize = 2, outputSize = 2 }; MultiLayerPerception mlp = new MultiLayerPerception(shp); Debug.Log(string.Join(",", mlp.GetWeightSections())); Debug.Assert(true); }
public float[] GetZeroWeights() { MultiLayerPerception mlp = new MultiLayerPerception(_simParams.mlpShape, Layer.FusedActivation.Relu6); int[] secs = mlp.GetWeightSections(); float[] result = new float[secs.Length]; for (int iWeight = 0; iWeight < result.Length; iWeight++) { result[iWeight] = (secs[iWeight] % 10 == 2) ? 3 : 0; } return(result); }