Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
e529448f
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
大约 1 年 前同步成功
通知
88
Star
4655
Fork
642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VisualDL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
e529448f
编写于
9月 03, 2020
作者:
P
Peter Pan
提交者:
GitHub
9月 03, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Millisecond (#783)
* fix: incorrect locale redirect * chore: use millisecond
上级
0cc548ae
变更
11
展开全部
显示空白变更内容
内联
并排
Showing
11 changed file
with
1888 addition
and
1912 deletion
+1888
-1912
frontend/packages/core/components/SamplePage/SampleChart.tsx
frontend/packages/core/components/SamplePage/SampleChart.tsx
+1
-1
frontend/packages/core/pages/pr-curve.tsx
frontend/packages/core/pages/pr-curve.tsx
+2
-2
frontend/packages/core/resource/scalar/data.ts
frontend/packages/core/resource/scalar/data.ts
+1
-2
frontend/packages/mock/data/audio/list.ts
frontend/packages/mock/data/audio/list.ts
+10
-10
frontend/packages/mock/data/histogram/list.ts
frontend/packages/mock/data/histogram/list.ts
+4
-4
frontend/packages/mock/data/image/list.ts
frontend/packages/mock/data/image/list.ts
+10
-10
frontend/packages/mock/data/pr-curve/list.ts
frontend/packages/mock/data/pr-curve/list.ts
+20
-20
frontend/packages/mock/data/pr-curve/steps.ts
frontend/packages/mock/data/pr-curve/steps.ts
+20
-20
frontend/packages/mock/data/scalar/list.ts
frontend/packages/mock/data/scalar/list.ts
+1000
-1000
frontend/packages/wasm/src/scalar.rs
frontend/packages/wasm/src/scalar.rs
+1
-1
frontend/yarn.lock
frontend/yarn.lock
+819
-842
未找到文件。
frontend/packages/core/components/SamplePage/SampleChart.tsx
浏览文件 @
e529448f
...
...
@@ -220,7 +220,7 @@ const SampleChart: FunctionComponent<SampleChartProps> = ({run, tag, running, ty
<
span
>
{
run
.
label
}
</
span
>
</
Title
>
<
StepSlider
value
=
{
step
}
steps
=
{
steps
}
onChange
=
{
setStep
}
onChangeComplete
=
{
cacheSrc
}
>
{
formatTime
(
wallTime
*
1000
,
i18n
.
language
)
}
{
formatTime
(
wallTime
,
i18n
.
language
)
}
</
StepSlider
>
<
Container
ref
=
{
container
}
>
{
Content
}
</
Container
>
<
Footer
>
...
...
frontend/packages/core/pages/pr-curve.tsx
浏览文件 @
e529448f
...
...
@@ -83,8 +83,8 @@ const PRCurve: NextI18NextPage = () => {
...
run
,
index
:
indexes
[
run
.
label
]
??
(
stepInfo
?.[
i
].
length
??
1
)
-
1
,
steps
:
stepInfo
?.[
i
].
map
(
j
=>
j
[
1
])
??
[],
wallTimes
:
stepInfo
?.[
i
].
map
(
j
=>
Math
.
floor
(
j
[
0
]
*
1000
))
??
[],
relatives
:
stepInfo
?.[
i
].
map
(
j
=>
(
j
[
0
]
-
stepInfo
[
i
][
0
][
0
])
*
1000
)
??
[]
wallTimes
:
stepInfo
?.[
i
].
map
(
j
=>
Math
.
floor
(
j
[
0
]))
??
[],
relatives
:
stepInfo
?.[
i
].
map
(
j
=>
j
[
0
]
-
stepInfo
[
i
][
0
][
0
]
)
??
[]
})),
[
runsInTags
,
stepInfo
,
indexes
]
);
...
...
frontend/packages/core/resource/scalar/data.ts
浏览文件 @
e529448f
...
...
@@ -17,8 +17,7 @@ export const transform = ({datasets, smoothing}: {datasets: ScalarDataset[]; smo
const
bigSmoothing
=
new
BigNumber
(
smoothing
);
data
.
forEach
((
d
,
i
)
=>
{
const
nextVal
=
new
BigNumber
(
d
[
2
]);
// second to millisecond.
const
millisecond
=
(
d
[
0
]
=
Math
.
floor
(
d
[
0
]
*
1000
));
const
millisecond
=
(
d
[
0
]
=
Math
.
floor
(
d
[
0
]));
if
(
i
===
0
)
{
startValue
=
millisecond
;
}
...
...
frontend/packages/mock/data/audio/list.ts
浏览文件 @
e529448f
export
default
[
{
wallTime
:
1512549785
.061
623
,
wallTime
:
1512549785
061.
623
,
step
:
60
},
{
wallTime
:
1512886109
.672
786
,
wallTime
:
1512886109
672.
786
,
step
:
60
},
{
wallTime
:
1512886124
.266
915
,
wallTime
:
1512886124
266.
915
,
step
:
210
},
{
wallTime
:
1512886138
.898
628
,
wallTime
:
1512886138
898.
628
,
step
:
330
},
{
wallTime
:
1512886139
.883
663
,
wallTime
:
1512886139
883.
663
,
step
:
340
},
{
wallTime
:
1512886147
.195
567
,
wallTime
:
1512886147
195.
567
,
step
:
410
},
{
wallTime
:
1512886156
.478
56
,
wallTime
:
1512886156
478.
56
,
step
:
500
},
{
wallTime
:
1512886187
.827
93
,
wallTime
:
1512886187
827.
93
,
step
:
810
},
{
wallTime
:
1512886200
.386
198
,
wallTime
:
1512886200
386.
198
,
step
:
950
},
{
wallTime
:
1512886204
.224
405
,
wallTime
:
1512886204
224.
405
,
step
:
990
}
];
frontend/packages/mock/data/histogram/list.ts
浏览文件 @
e529448f
export
default
[
[
1515224840
.945
252
,
1515224840
945.
252
,
0
,
[
[
-
4.826786994934082
,
-
5.099814079160488
,
0.0
],
...
...
@@ -62,7 +62,7 @@ export default [
]
],
[
1515224846
.831
22
,
1515224846
831.
22
,
70
,
[
[
-
5.609264373779297
,
-
5.609795487076537
,
0.0
],
...
...
@@ -108,7 +108,7 @@ export default [
]
],
[
1515224850
.414
384
,
1515224850
414.
384
,
100
,
[
[
-
5.622415065765381
,
-
6.1707750357841915
,
0.0
],
...
...
@@ -166,7 +166,7 @@ export default [
]
],
[
1515224852
.173
82
,
1515224852
173.
82
,
120
,
[
[
-
5.641714572906494
,
-
6.1707750357841915
,
0.0
],
...
...
frontend/packages/mock/data/image/list.ts
浏览文件 @
e529448f
export
default
[
{
wallTime
:
1512549785
.061
623
,
wallTime
:
1512549785
061.
623
,
step
:
60
},
{
wallTime
:
1512886109
.672
786
,
wallTime
:
1512886109
672.
786
,
step
:
60
},
{
wallTime
:
1512886124
.266
915
,
wallTime
:
1512886124
266.
915
,
step
:
210
},
{
wallTime
:
1512886138
.898
628
,
wallTime
:
1512886138
898.
628
,
step
:
330
},
{
wallTime
:
1512886139
.883
663
,
wallTime
:
1512886139
883.
663
,
step
:
340
},
{
wallTime
:
1512886147
.195
567
,
wallTime
:
1512886147
195.
567
,
step
:
410
},
{
wallTime
:
1512886156
.478
56
,
wallTime
:
1512886156
478.
56
,
step
:
500
},
{
wallTime
:
1512886187
.827
93
,
wallTime
:
1512886187
827.
93
,
step
:
810
},
{
wallTime
:
1512886200
.386
198
,
wallTime
:
1512886200
386.
198
,
step
:
950
},
{
wallTime
:
1512886204
.224
405
,
wallTime
:
1512886204
224.
405
,
step
:
990
}
];
frontend/packages/mock/data/pr-curve/list.ts
浏览文件 @
e529448f
...
...
@@ -4,7 +4,7 @@ export default (request: Request) => {
if
(
request
.
query
.
run
===
'
train
'
)
{
return
[
[
1593069993
.786
464
,
1593069993
786.
464
,
0
,
[
0.3333333432674408
,
...
...
@@ -309,7 +309,7 @@ export default (request: Request) => {
]
],
[
1593069993
.787
353
,
1593069993
787.
353
,
1
,
[
0.3333333432674408
,
...
...
@@ -628,7 +628,7 @@ export default (request: Request) => {
]
],
[
1593069993
.788
1448
,
1593069993
788.
1448
,
2
,
[
0.3333333432674408
,
...
...
@@ -933,7 +933,7 @@ export default (request: Request) => {
]
],
[
1593069993
.788
836
,
1593069993
788.
836
,
3
,
[
0.3333333432674408
,
...
...
@@ -1266,7 +1266,7 @@ export default (request: Request) => {
]
],
[
1593069993
.789
4
,
1593069993
789.
4
,
4
,
[
0.3333333432674408
,
...
...
@@ -1557,7 +1557,7 @@ export default (request: Request) => {
]
],
[
1593069993
.790
076
,
1593069993
790.
076
,
5
,
[
0.3333333432674408
,
...
...
@@ -1862,7 +1862,7 @@ export default (request: Request) => {
]
],
[
1593069993
.790
763
,
1593069993
790.
763
,
6
,
[
0.3333333432674408
,
...
...
@@ -2195,7 +2195,7 @@ export default (request: Request) => {
]
],
[
1593069993
.791
473
,
1593069993
791.
473
,
7
,
[
0.3333333432674408
,
...
...
@@ -2521,7 +2521,7 @@ export default (request: Request) => {
]
],
[
1593069993
.792
149
,
1593069993
792.
149
,
8
,
[
0.3333333432674408
,
...
...
@@ -2840,7 +2840,7 @@ export default (request: Request) => {
]
],
[
1593069993
.792
763
,
1593069993
792.
763
,
9
,
[
0.3333333432674408
,
...
...
@@ -3148,7 +3148,7 @@ export default (request: Request) => {
}
return
[
[
1593069993
.538
6739
,
1593069993
538.
6739
,
0
,
[
0.3333333432674408
,
...
...
@@ -3488,7 +3488,7 @@ export default (request: Request) => {
]
],
[
1593069993
.539
396
,
1593069993
539.
396
,
1
,
[
0.3333333432674408
,
...
...
@@ -3807,7 +3807,7 @@ export default (request: Request) => {
]
],
[
1593069993
.540
066
,
1593069993
540.
066
,
2
,
[
0.3333333432674408
,
...
...
@@ -4112,7 +4112,7 @@ export default (request: Request) => {
]
],
[
1593069993
.540
662
,
1593069993
540.
662
,
3
,
[
0.3333333432674408
,
...
...
@@ -4452,7 +4452,7 @@ export default (request: Request) => {
]
],
[
1593069993
.541
333
,
1593069993
541.
333
,
4
,
[
0.3333333432674408
,
...
...
@@ -4771,7 +4771,7 @@ export default (request: Request) => {
]
],
[
1593069993
.542
078
,
1593069993
542.
078
,
5
,
[
0.3333333432674408
,
...
...
@@ -5097,7 +5097,7 @@ export default (request: Request) => {
]
],
[
1593069993
.543
1821
,
1593069993
543.
1821
,
6
,
[
0.3333333432674408
,
...
...
@@ -5430,7 +5430,7 @@ export default (request: Request) => {
]
],
[
1593069993
.543
998
,
1593069993
543.
998
,
7
,
[
0.3333333432674408
,
...
...
@@ -5756,7 +5756,7 @@ export default (request: Request) => {
]
],
[
1593069993
.544
9128
,
1593069993
544.
9128
,
8
,
[
0.3333333432674408
,
...
...
@@ -6075,7 +6075,7 @@ export default (request: Request) => {
]
],
[
1593069993
.545
62
,
1593069993
545.
62
,
9
,
[
0.3333333432674408
,
...
...
frontend/packages/mock/data/pr-curve/steps.ts
浏览文件 @
e529448f
...
...
@@ -3,28 +3,28 @@ import {Request} from 'express';
export
default
(
request
:
Request
)
=>
{
if
(
request
.
query
.
run
===
'
train
'
)
{
return
[
[
1593069993
.786
464
,
0
],
[
1593069993
.787
353
,
1
],
[
1593069993
.788
1448
,
2
],
[
1593069993
.788
836
,
3
],
[
1593069993
.789
4
,
4
],
[
1593069993
.790
076
,
5
],
[
1593069993
.790
763
,
6
],
[
1593069993
.791
473
,
7
],
[
1593069993
.792
149
,
8
],
[
1593069993
.792
763
,
9
]
[
1593069993
786.
464
,
0
],
[
1593069993
787.
353
,
1
],
[
1593069993
788.
1448
,
2
],
[
1593069993
788.
836
,
3
],
[
1593069993
789.
4
,
4
],
[
1593069993
790.
076
,
5
],
[
1593069993
790.
763
,
6
],
[
1593069993
791.
473
,
7
],
[
1593069993
792.
149
,
8
],
[
1593069993
792.
763
,
9
]
];
}
return
[
[
1593069993
.538
6739
,
0
],
[
1593069993
.539
396
,
1
],
[
1593069993
.540
066
,
2
],
[
1593069993
.540
662
,
3
],
[
1593069993
.541
333
,
4
],
[
1593069993
.542
078
,
5
],
[
1593069993
.543
1821
,
6
],
[
1593069993
.543
998
,
7
],
[
1593069993
.544
9128
,
8
],
[
1593069993
.545
62
,
9
]
[
1593069993
538.
6739
,
0
],
[
1593069993
539.
396
,
1
],
[
1593069993
540.
066
,
2
],
[
1593069993
540.
662
,
3
],
[
1593069993
541.
333
,
4
],
[
1593069993
542.
078
,
5
],
[
1593069993
543.
1821
,
6
],
[
1593069993
543.
998
,
7
],
[
1593069993
544.
9128
,
8
],
[
1593069993
545.
62
,
9
]
];
};
frontend/packages/mock/data/scalar/list.ts
浏览文件 @
e529448f
此差异已折叠。
点击以展开。
frontend/packages/wasm/src/scalar.rs
浏览文件 @
e529448f
...
...
@@ -47,7 +47,7 @@ pub fn transform(datasets: &Vec<Vec<Dataset>>, smoothing: f64) -> Vec<Vec<Smooth
let
mut
r
:
Smoothed
=
Smoothed
(
0
,
d
.1
,
d
.2
,
0.0
,
0.0
);
let
next_val
:
f64
=
d
.2
;
// second to millisecond.
let
millisecond
:
i64
=
((
d
.0
as
f64
)
*
1000_f64
)
.floor
()
as
i64
;
let
millisecond
:
i64
=
d
.0
.floor
()
as
i64
;
r
.0
=
millisecond
;
if
i
==
0
{
start_value
=
millisecond
;
...
...
frontend/yarn.lock
浏览文件 @
e529448f
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录