File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
本示例默认使用cifar10数据,cifar10数据会根据调用的paddle接口自动下载,无需额外准备。
7
7
8
8
## 接口介绍
9
- 请参考<a href =' ../../docs/docs/api /nas_api.md ' >神经网络搜索API文档</a >。
9
+ 请参考<a href =' ../../docs/zh_cn/api_cn /nas_api.rst ' >神经网络搜索API文档</a >。
10
10
11
11
本示例为在MobileNetV2的搜索空间上搜索FLOPs更小的模型。
12
12
## 1 搜索空间配置
13
- 默认搜索空间为` MobileNetV2 ` ,详细的搜索空间配置请参考<a href =' ../../docs/docs/ search_space.md ' >搜索空间配置文档</a >。
13
+ 默认搜索空间为` MobileNetV2 ` ,详细的搜索空间配置请参考<a href =' ../../docs/zh_cn/api_cn/ search_space.rst ' >搜索空间配置文档</a >。
14
14
15
15
## 2 启动训练
16
16
Original file line number Diff line number Diff line change 236
236
T_k = T_0*\theta^k
237
237
$$
238
238
239
+ $$
239
240
\begin{equation}
240
241
P(r_k) =
241
242
\begin{cases}
242
243
e^{\frac{(r_k-r)}{T_k}} & r_k < r\\
243
244
1 & r_k>=r
244
245
\end{cases}
245
246
\end{equation}
247
+ $$
246
248
247
249
在第k次迭代,搜到的网络为$N_k$, 对$N_k$训练若干epoch后,在测试集上得到reward为$r_k$, 以概率$P(r_k)$接受$r_k$,即执行$r=r_k$。$r$在搜索过程起始时被初始化为0. $T_0$为初始化温度,$\theta$为温度衰减系数,$T_k$为第k次迭代的温度。
248
250
You can’t perform that action at this time.
0 commit comments