Esempio n. 1
0
 private void mainfrm_Load(object sender, EventArgs e)
 {
     //初始化手写操作
     handwriting_ini();
     //构建BP神经网络
     sys = new Wineforever.Neuralnet.System("sys");
     sys.Create(32);
     sys.Create(10, "", "softmax");
     //加载权重
     sys.Load(System.AppDomain.CurrentDomain.BaseDirectory + "Model\\");
 }
Esempio n. 2
0
 private void mainfrm_Load(object sender, EventArgs e)
 {
     //初始化手写操作
     handwriting_ini();
     //构建卷积神经网络
     sys = new Wineforever.Neuralnet.System("sys");
     sys.Create(3, 5, 1, "卷积层 1");        //3个卷积核,5x5尺寸
     sys.Create(3, 3, 1, "卷积层 2");        //3个卷积核,3x3尺寸
     sys.Create("Flatten层");
     sys.Create(128, "全连接层 1");           //128个神经元
     sys.Create(10, "全连接层 2", "softmax"); //10个神经元,Softmax输出
     //加载权重
     sys.Load(System.AppDomain.CurrentDomain.BaseDirectory + "Model\\");
 }