GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NeuralNetwork/Sample.cpp at master · 768897663/NeuralNetwork

Expand file tree

/

Sample.cpp

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
21 lines (15 loc) · 465 Bytes
/

Sample.cpp

Copy path

File metadata and controls

21 lines (15 loc) · 465 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "NeuralNetwork.hpp"
int main()
{
/// 1. 创建一个输入层,两个隐含层,一个输出层的神经网络
mtl::BPNeuralNet<20, 30, 20, 2> mynn;
/// 2. 初始化
mynn.init(0.1, 0.8);
mtl::Matrix<double, 1, 20> inMatrix;
mtl::Matrix<double, 1, 2> outMatrix;
/// 3. ... 录入你的矩阵数据
/// 4. 训练
mynn.train(inMatrix, outMatrix, 100);
/// 5. 仿真
mynn.simulat(inMatrix, outMatrix);
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.