Пример #1
0
 public BiGRU(int xSize, int hSize, int ySize, int batchSize, int seqLen)
 {
     forward  = new LayeredNet <T>(batchSize, seqLen, new GruLayer <T>(xSize, hSize));
     backward = new LayeredNet <T>(batchSize, seqLen, new GruLayer <T>(xSize, hSize));
     outNet   = new LayeredNet <T>(batchSize, seqLen, new GruLayer <T>(hSize * 2, hSize), new LinearLayer <T>(hSize, ySize));
 }
Пример #2
0
 public BiGRU(BiGRU <T> other)
 {
     forward  = other.forward.Clone();
     backward = other.backward.Clone();
     outNet   = other.outNet.Clone();
 }
Пример #3
0
 protected NeuralNet(NeuralNet <T> other)
 {
     Optimizer = other.Optimizer.Clone();
 }