Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
2a24ffd6
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
7
Star
3
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2a24ffd6
编写于
4月 21, 2020
作者:
P
ph
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update histogram
上级
fe3b7843
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
334 addition
and
263 deletion
+334
-263
mindinsight/ui/src/locales/zh-cn.json
mindinsight/ui/src/locales/zh-cn.json
+9
-8
mindinsight/ui/src/views/train-manage/histogram.vue
mindinsight/ui/src/views/train-manage/histogram.vue
+314
-248
mindinsight/ui/src/views/train-manage/training-dashboard.vue
mindinsight/ui/src/views/train-manage/training-dashboard.vue
+11
-7
未找到文件。
mindinsight/ui/src/locales/zh-cn.json
浏览文件 @
2a24ffd6
...
@@ -46,8 +46,9 @@
...
@@ -46,8 +46,9 @@
"modelSize"
:
"模型大小"
,
"modelSize"
:
"模型大小"
,
"dataProcess"
:
"数据处理"
,
"dataProcess"
:
"数据处理"
,
"noDataFound"
:
"暂无满足筛选条件的数据"
,
"noDataFound"
:
"暂无满足筛选条件的数据"
,
"noDataTips"
:
"请点击“显示全量数据”按钮查看全量数据"
"noDataTips"
:
"请点击“显示全量数据”按钮查看全量数据"
,
"userDefined"
:
"自定义数据"
,
"metric"
:
"度量指标"
},
},
"dataTraceback"
:
{
"dataTraceback"
:
{
"details"
:
"详情"
,
"details"
:
"详情"
,
...
@@ -102,21 +103,21 @@
...
@@ -102,21 +103,21 @@
},
},
"histogram"
:
{
"histogram"
:
{
"titleText"
:
"参数分布图"
,
"titleText"
:
"参数分布图"
,
"xAxisTitle"
:
"
水平
轴"
,
"xAxisTitle"
:
"
纵
轴"
,
"viewType"
:
"
直方图模式
"
,
"viewType"
:
"
视角
"
,
"centerValue"
:
"中心值"
,
"centerValue"
:
"中心值"
,
"step"
:
"步骤"
,
"step"
:
"步骤"
,
"relativeTime"
:
"相对时间"
,
"relativeTime"
:
"相对时间"
,
"absoluteTime"
:
"绝对时间"
,
"absoluteTime"
:
"绝对时间"
,
"overlay"
:
"
覆盖
"
,
"overlay"
:
"
正视
"
,
"offset"
:
"
偏移
"
,
"offset"
:
"
俯视
"
,
"fullScreen"
:
"切换全屏"
"fullScreen"
:
"切换全屏"
},
},
"dataMap"
:
{
"dataMap"
:
{
"titleText"
:
"数据图
可视
"
"titleText"
:
"数据图"
},
},
"graph"
:
{
"graph"
:
{
"titleText"
:
"计算图
可视
"
,
"titleText"
:
"计算图"
,
"downloadPic"
:
"下载"
,
"downloadPic"
:
"下载"
,
"nodeInfo"
:
"节点信息"
,
"nodeInfo"
:
"节点信息"
,
"legend"
:
"图例"
,
"legend"
:
"图例"
,
...
...
mindinsight/ui/src/views/train-manage/histogram.vue
浏览文件 @
2a24ffd6
此差异已折叠。
点击以展开。
mindinsight/ui/src/views/train-manage/training-dashboard.vue
浏览文件 @
2a24ffd6
...
@@ -51,15 +51,15 @@ limitations under the License.
...
@@ -51,15 +51,15 @@ limitations under the License.
</div>
</div>
</div>
</div>
<div
class=
"cl-dashboard-con-up"
<div
class=
"cl-dashboard-con-up"
:class=
"!!histogramTag ? '' : 'no-data-hover'"
:class=
"!!histogramTag
&& !wrongPlugin
? '' : 'no-data-hover'"
@
click=
"viewMoreHistogram"
>
@
click=
"viewMoreHistogram"
>
<div
class=
"cl-dashboard-title"
>
{{
$t
(
"
histogram.titleText
"
)
}}
</div>
<div
class=
"cl-dashboard-title"
>
{{
$t
(
"
histogram.titleText
"
)
}}
</div>
<div
class=
"cl-module"
>
<div
class=
"cl-module"
>
<div
id=
"distribution-chart"
<div
id=
"distribution-chart"
v-show=
"!!histogramTag"
></div>
v-show=
"!!histogramTag
&& !wrongPlugin
"
></div>
<div
class=
"no-data-img"
<div
class=
"no-data-img"
key=
"no-chart-data"
key=
"no-chart-data"
v-show=
"!histogramTag"
>
v-show=
"!histogramTag
|| wrongPlugin
"
>
<img
:src=
"require('@/assets/images/nodata.png')"
<img
:src=
"require('@/assets/images/nodata.png')"
alt=
""
/>
alt=
""
/>
<p
class=
'no-data-text'
>
<p
class=
'no-data-text'
>
...
@@ -769,15 +769,18 @@ export default {
...
@@ -769,15 +769,18 @@ export default {
if
(
!
tagList
)
{
if
(
!
tagList
)
{
return
;
return
;
}
}
let
histogramTag
=
''
;
if
(
!
this
.
histogramTag
||
tagList
.
indexOf
(
this
.
histogramTag
)
===
-
1
)
{
if
(
!
this
.
histogramTag
||
tagList
.
indexOf
(
this
.
histogramTag
)
===
-
1
)
{
this
.
histogramTag
=
tagList
[
0
]
||
''
;
histogramTag
=
tagList
[
0
]
||
''
;
}
else
{
histogramTag
=
this
.
histogramTag
;
}
}
if
(
!
this
.
histogramTag
)
{
if
(
!
histogramTag
)
{
return
;
return
;
}
}
const
params
=
{
const
params
=
{
train_id
:
this
.
trainingJobId
,
train_id
:
this
.
trainingJobId
,
tag
:
this
.
histogramTag
,
tag
:
histogramTag
,
};
};
// tag
// tag
RequestService
.
getHistogramData
(
params
).
then
((
res
)
=>
{
RequestService
.
getHistogramData
(
params
).
then
((
res
)
=>
{
...
@@ -790,6 +793,7 @@ export default {
...
@@ -790,6 +793,7 @@ export default {
return
;
return
;
}
}
const
data
=
res
.
data
;
const
data
=
res
.
data
;
this
.
histogramTag
=
histogramTag
;
this
.
histogramData
=
this
.
formOriData
(
data
);
this
.
histogramData
=
this
.
formOriData
(
data
);
const
charOption
=
this
.
formatDataToChar
();
const
charOption
=
this
.
formatDataToChar
();
this
.
updateHistogramSampleData
(
charOption
);
this
.
updateHistogramSampleData
(
charOption
);
...
@@ -873,7 +877,7 @@ export default {
...
@@ -873,7 +877,7 @@ export default {
textStyle
:
{
fontFamily
:
'
Merriweather Sans
'
},
textStyle
:
{
fontFamily
:
'
Merriweather Sans
'
},
title
:
{
title
:
{
text
:
charOption
.
title
||
''
,
text
:
charOption
.
title
||
''
,
textStyle
:
{
fontSize
:
'
1
6
'
,
fontWeight
:
'
6
00
'
},
textStyle
:
{
fontSize
:
'
1
2
'
,
fontWeight
:
'
4
00
'
},
bottom
:
6
,
bottom
:
6
,
left
:
'
center
'
,
left
:
'
center
'
,
},
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录