Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
4fb85fbc
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看板
提交
4fb85fbc
编写于
8月 31, 2020
作者:
Q
qin_jun_yan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Data source page turning display problem modification
上级
09532e3d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
66 addition
and
2 deletion
+66
-2
mindinsight/ui/src/views/train-manage/data-traceback.vue
mindinsight/ui/src/views/train-manage/data-traceback.vue
+65
-1
mindinsight/ui/src/views/train-manage/model-traceback.vue
mindinsight/ui/src/views/train-manage/model-traceback.vue
+1
-1
未找到文件。
mindinsight/ui/src/views/train-manage/data-traceback.vue
浏览文件 @
4fb85fbc
...
...
@@ -1367,7 +1367,71 @@ export default {
this
.
errorData
=
false
;
this
.
lineagedata
=
this
.
formateOriginData
(
res
.
data
);
const
serData
=
this
.
lineagedata
.
serData
;
this
.
table
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
serData
));
if
(
this
.
selectedBarList
&&
this
.
selectedBarList
.
length
)
{
const
tempList
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
object
));
const
list
=
[];
const
metricKeys
=
{};
tempList
.
forEach
((
item
)
=>
{
if
(
item
.
model_lineage
)
{
const
modelData
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
model_lineage
),
);
modelData
.
model_size
=
parseFloat
(
((
modelData
.
model_size
||
0
)
/
1024
/
1024
).
toFixed
(
2
),
);
const
keys
=
Object
.
keys
(
modelData
.
metric
||
{});
if
(
keys
.
length
)
{
keys
.
forEach
((
key
)
=>
{
if
(
modelData
.
metric
[
key
]
||
modelData
.
metric
[
key
]
===
0
)
{
const
temp
=
this
.
replaceStr
.
metric
+
key
;
metricKeys
[
temp
]
=
key
;
modelData
[
temp
]
=
modelData
.
metric
[
key
];
}
});
delete
modelData
.
metric
;
}
const
udkeys
=
Object
.
keys
(
modelData
.
user_defined
||
{});
if
(
udkeys
.
length
)
{
udkeys
.
forEach
((
key
)
=>
{
if
(
modelData
.
user_defined
[
key
]
||
modelData
.
user_defined
[
key
]
===
0
)
{
const
temp
=
this
.
replaceStr
.
userDefined
+
key
;
modelData
[
temp
]
=
modelData
.
user_defined
[
key
];
}
});
delete
modelData
.
user_defined
;
}
list
.
push
(
modelData
);
}
});
this
.
modelObjectArray
=
[];
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
const
modelObject
=
{};
for
(
let
j
=
0
;
j
<
this
.
selectedBarList
.
length
;
j
++
)
{
const
tempObject
=
list
[
i
];
const
key
=
this
.
selectedBarList
[
j
];
modelObject
[
key
]
=
tempObject
[
key
];
}
this
.
modelObjectArray
.
push
(
modelObject
);
}
if
(
this
.
modelObjectArray
.
length
)
{
const
list
=
JSON
.
parse
(
JSON
.
stringify
(
serData
));
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
const
temp
=
this
.
modelObjectArray
[
i
];
list
[
i
]
=
Object
.
assign
(
list
[
i
],
temp
);
}
this
.
table
.
data
=
list
;
}
else
{
this
.
table
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
serData
));
}
}
else
{
this
.
table
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
serData
));
}
},
(
error
)
=>
{
this
.
errorData
=
true
;
...
...
mindinsight/ui/src/views/train-manage/model-traceback.vue
浏览文件 @
4fb85fbc
...
...
@@ -1017,11 +1017,11 @@ export default {
this
.
loading
=
false
;
if
(
res
&&
res
.
data
&&
res
.
data
.
object
)
{
this
.
errorData
=
false
;
this
.
setInitListValue
();
const
listTemp
=
this
.
setDataOfModel
(
res
.
data
.
object
);
const
list
=
JSON
.
parse
(
JSON
.
stringify
(
listTemp
));
const
tempEchartData
=
JSON
.
parse
(
JSON
.
stringify
(
listTemp
));
if
(
allData
)
{
this
.
setInitListValue
();
let
customized
=
{};
if
(
res
.
data
.
customized
)
{
customized
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
customized
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录