Esempio n. 1
0
 public TwoLayerNet(UnitSize unitSize)
 {
     this.unitSize = unitSize;
     weight        = new Weight(unitSize);
     bias          = new Bias(unitSize);
     Initialize();
     Layers    = new Layer[3];
     Layers[0] = new AffineLayer(weight.InToHidden, bias.Hidden);
     Layers[1] = new ReluLayer();
     Layers[2] = new AffineLayer(weight.HiddenToOut, bias.Output);
 }
Esempio n. 2
0
 public Model(UnitSize unitSize, Bias bias, Weight weight)
 {
     this.unitSize = unitSize;
     this.bias     = bias;
     this.weight   = weight;
 }