Skip to content

Commit fa9b256

Browse files
committed
docs(overall-structure): 介绍PyNet整体实现架构
1 parent 5ebe4b8 commit fa9b256

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

docs/overall-structure.md

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
# 整体架构
3+
4+
## 整个仓库
5+
6+
```
7+
├── CHANGELOG.md
8+
├── docs
9+
├── examples
10+
├── imgs
11+
│   ├── logo2.png
12+
│   └── logo.png
13+
├── LICENSE
14+
├── mkdocs.yml
15+
├── pynet
16+
├── README.EN.md
17+
├── README.md
18+
└── requirements.txt
19+
```
20+
21+
* `PyNet`实现代码位于`pynet`
22+
* `PyNet`示例代码位于`examples`
23+
* 说明文档位于`docs`
24+
25+
## pynet
26+
27+
```
28+
├── __init__.py
29+
├── models
30+
├── nn
31+
├── optim
32+
├── __pycache__
33+
├── requirements.txt
34+
├── solver.py
35+
└── vision
36+
```
37+
38+
* 层的实现位于`nn`,比如`Conv2d/MaxPool/Dropout/BN/ReLU/...`
39+
* 模型的实现位于`models`,比如`FCNet/LeNet5/AlexNet/NIN`
40+
* 优化器和学习率调度器的实现位于`optim`,比如`SGD/StepLR`
41+
* 数据加载和训练结果绘制的实现位于`vision`
42+
* 求解器实现位于`solver.py`
43+
44+
## examples
45+
46+
```
47+
├── 2_nn_mnist.py
48+
├── 3_nn_cifar10.py
49+
├── 3_nn_iris.py
50+
├── 3_nn_mnist.py
51+
├── 3_nn_orl.py
52+
├── lenet5_mnist.py
53+
└── nin_cifar10.py
54+
```
55+
56+
测试了`4`个网络模型:`2``/3`层神经网络、`LeNet5``NIN`;以及`4`个数据集:`MNIST、CIFAR10、iris``ORL`
57+
58+
*`Note`:使用`NIN`的使用就很慢了*

mkdocs.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ extra_javascript:
2929
- 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'
3030
# 导航
3131
nav:
32-
- Home: index.md
32+
- Home: index.md
33+
- 整体架构: overall-structure.md

0 commit comments

Comments
 (0)