Esempio n. 1
0
    void Start()
    {
        int        numInputs         = 28 * 28;
        List <int> hiddenLayerCounts = new List <int> {
            16, 16
        };
        int numOutputs = 10;

        global = new NNglobal(numInputs, hiddenLayerCounts, numOutputs);
    }
Esempio n. 2
0
 public NNnode(int layer0, NNglobal global0)
 {
     layer  = layer0;
     global = global0;
     go     = GameObject.CreatePrimitive(PrimitiveType.Cube);
     go.transform.parent = global.parentNodes.transform;
     global.nodeLayers[layer].Add(this);
     index      = global.nodeLayers[layer].Count - 1;
     go.name    = layer + " " + index;
     inputNodes = new List <NNnode>();
     weights    = new List <float>();
     links      = new List <GameObject>();
     Update();
     global.cntNodes++;
 }