Skip to content
This repository was archived by the owner on May 8, 2019. It is now read-only.

Commit 09636b3

Browse files
committed
Deeplearning4j - 使用SparkComputationGraph构建网络UI不能正常监控
1 parent c662980 commit 09636b3

2 files changed

+43
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Deeplearning4j - 使用SparkComputationGraph构建网络UI不能正常监控
2+
3+
---
4+
5+
# 一、问题描述
6+
7+
使用`SparkComputationGraph`构建跳跃连接(skip connection)的神经网络结构,在模型训练阶段,使用`RemoteUIStatsStorageRouter`用于监控模型的运行状态,但是无法获取模型的训练信息。
8+
9+
- Deeplearning4j 版本为 1.0
10+
11+
```scala
12+
/** spark graph use **/
13+
val sparkGraph = new SparkComputationGraph(sparkConf, networkConfig, trainingMaster)
14+
val seesionId = "test"
15+
val remoteUIRouter: StatsStorageRouter = new RemoteUIStatsStorageRouter("http://localhost:9000")
16+
val statsListener = new StatsListener(null, null, null, seesionId, null)
17+
sparkGraph.setListeners(remoteUIRouter, Collections.singletonList(statsListener))
18+
19+
UIServer uiServer = UIServer.getInstance();
20+
uiServer.enableRemoteListener();
21+
```
22+
23+
但是界面展现图均为空:
24+
<center>![此处输入图片的描述][1]</center>
25+
<center>![此处输入图片的描述][2]</center>
26+
27+
28+
# 二、解决方法
29+
在构造监听器时,使用如下代码段:
30+
```
31+
val statsConfig = new DefaultStatsUpdateConfiguration.Builder().reportingFrequency(1).build()
32+
val statsListener = new StatsListener(null, null, statsConfig, seesionId, null)
33+
```
34+
---
35+
原问题链接: https://github.com/deeplearning4j/deeplearning4j/issues/5080#issue-320828533
36+
37+
更多文档可以查看 https://github.com/sjsdfg/deeplearning4j-issues。
38+
你的star是我持续分享的动力
39+
40+
[1]: https://user-images.githubusercontent.com/18146142/39741881-10ce9422-52ce-11e8-91b1-6e33c2942ce8.png
41+
[2]: https://user-images.githubusercontent.com/18146142/39741882-1118a29c-52ce-11e8-8817-d4848f3d2896.png
42+
[3]: https://user-images.githubusercontent.com/18146142/39741884-115c94de-52ce-11e8-8643-983b68b2db3a.png
43+
[4]: https://user-images.githubusercontent.com/18146142/39741884-115c94de-52ce-11e8-8643-983b68b2db3a.png

0 commit comments

Comments
 (0)