Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
b3f4bdb7
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看板
未验证
提交
b3f4bdb7
编写于
5月 18, 2020
作者:
P
Peter Pan
提交者:
GitHub
5月 18, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add tag select in high-dimensional page (#629)
* feat: add tag select in high-dimensional page * v2.0.0-beta.43
上级
e09ab3d2
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
73 addition
and
30 deletion
+73
-30
frontend/lerna.json
frontend/lerna.json
+1
-1
frontend/packages/cli/package.json
frontend/packages/cli/package.json
+2
-2
frontend/packages/core/components/HighDimensionalPage/HighDimensionalChart.tsx
...e/components/HighDimensionalPage/HighDimensionalChart.tsx
+5
-2
frontend/packages/core/package.json
frontend/packages/core/package.json
+4
-4
frontend/packages/core/pages/high-dimensional.tsx
frontend/packages/core/pages/high-dimensional.tsx
+42
-12
frontend/packages/i18n/package.json
frontend/packages/i18n/package.json
+1
-1
frontend/packages/mock/data/embeddings/tags.ts
frontend/packages/mock/data/embeddings/tags.ts
+10
-0
frontend/packages/mock/package.json
frontend/packages/mock/package.json
+1
-1
frontend/packages/server/package.json
frontend/packages/server/package.json
+4
-4
frontend/packages/serverless/package.json
frontend/packages/serverless/package.json
+2
-2
frontend/packages/wasm/package.json
frontend/packages/wasm/package.json
+1
-1
未找到文件。
frontend/lerna.json
浏览文件 @
b3f4bdb7
...
...
@@ -2,7 +2,7 @@
"packages"
:
[
"packages/*"
],
"version"
:
"2.0.0-beta.4
2
"
,
"version"
:
"2.0.0-beta.4
3
"
,
"npmClient"
:
"yarn"
,
"useWorkspaces"
:
true
,
"command"
:
{
...
...
frontend/packages/cli/package.json
浏览文件 @
b3f4bdb7
{
"name"
:
"@visualdl/cli"
,
"version"
:
"2.0.0-beta.4
2
"
,
"version"
:
"2.0.0-beta.4
3
"
,
"description"
:
"A platform to visualize the deep learning process and result."
,
"keywords"
:
[
"visualdl"
,
...
...
@@ -34,7 +34,7 @@
"dist"
],
"dependencies"
:
{
"@visualdl/server"
:
"2.0.0-beta.4
2
"
,
"@visualdl/server"
:
"2.0.0-beta.4
3
"
,
"open"
:
"7.0.3"
,
"ora"
:
"4.0.4"
,
"pm2"
:
"4.4.0"
,
...
...
frontend/packages/core/components/HighDimensionalPage/HighDimensionalChart.tsx
浏览文件 @
b3f4bdb7
...
...
@@ -47,6 +47,7 @@ type Data = {
type
HighDimensionalChartProps
=
{
run
:
string
;
tag
:
string
;
running
?:
boolean
;
labelVisibility
?:
boolean
;
reduction
:
Reduction
;
...
...
@@ -56,6 +57,7 @@ type HighDimensionalChartProps = {
const
HighDimensionalChart
:
FunctionComponent
<
HighDimensionalChartProps
>
=
({
run
,
tag
,
running
,
labelVisibility
,
keyword
,
...
...
@@ -66,8 +68,9 @@ const HighDimensionalChart: FunctionComponent<HighDimensionalChartProps> = ({
const
{
data
,
error
,
loading
}
=
useRunningRequest
<
Data
>
(
`/embeddings/embedding?
${
queryString
.
stringify
({
run
:
run
??
''
,
dimension
:
Number
.
parseInt
(
dimension
),
run
,
tag
,
dimension
:
Number
.
parseInt
(
dimension
,
10
),
reduction
})}
`
,
!!
running
...
...
frontend/packages/core/package.json
浏览文件 @
b3f4bdb7
{
"name"
:
"@visualdl/core"
,
"version"
:
"2.0.0-beta.4
2
"
,
"version"
:
"2.0.0-beta.4
3
"
,
"title"
:
"VisualDL"
,
"description"
:
"A platform to visualize the deep learning process and result."
,
"keywords"
:
[
...
...
@@ -31,8 +31,8 @@
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 0"
},
"dependencies"
:
{
"@visualdl/i18n"
:
"2.0.0-beta.4
2
"
,
"@visualdl/wasm"
:
"2.0.0-beta.4
2
"
,
"@visualdl/i18n"
:
"2.0.0-beta.4
3
"
,
"@visualdl/wasm"
:
"2.0.0-beta.4
3
"
,
"bignumber.js"
:
"9.0.0"
,
"dagre-d3"
:
"0.6.4"
,
"echarts"
:
"4.7.0"
,
...
...
@@ -73,7 +73,7 @@
"@types/react"
:
"16.9.34"
,
"@types/react-dom"
:
"16.9.7"
,
"@types/styled-components"
:
"5.1.0"
,
"@visualdl/mock"
:
"2.0.0-beta.4
2
"
,
"@visualdl/mock"
:
"2.0.0-beta.4
3
"
,
"babel-plugin-emotion"
:
"10.0.33"
,
"babel-plugin-styled-components"
:
"1.10.7"
,
"babel-plugin-typescript-to-proptypes"
:
"1.3.2"
,
...
...
frontend/packages/core/pages/high-dimensional.tsx
浏览文件 @
b3f4bdb7
import
{
Dimension
,
Reduction
}
from
'
~/resource/high-dimensional
'
;
import
{
NextI18NextPage
,
useTranslation
}
from
'
~/utils/i18n
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
React
,
{
useEffect
,
use
Memo
,
use
State
}
from
'
react
'
;
import
Select
,
{
SelectProps
}
from
'
~/components/Select
'
;
import
{
em
,
rem
}
from
'
~/utils/style
'
;
...
...
@@ -44,18 +44,51 @@ const AsideTitle = styled.div`
margin-bottom:
${
rem
(
10
)}
;
`
;
type
Item
=
{
run
:
string
;
tag
:
string
;
label
:
string
;
};
const
HighDimensional
:
NextI18NextPage
=
()
=>
{
const
{
t
}
=
useTranslation
([
'
high-dimensional
'
,
'
common
'
]);
const
[
running
,
setRunning
]
=
useState
(
true
);
const
{
data
:
runs
,
error
:
runsError
,
loading
:
runsLoading
}
=
useRunningRequest
<
string
[]
>
(
'
/runs
'
,
running
);
const
{
data
:
tags
,
error
:
tagsError
,
loading
:
tagsLoading
}
=
useRunningRequest
<
Record
<
string
,
string
[]
>>
(
'
/embeddings/tags
'
,
running
);
const
error
=
useMemo
(()
=>
runsError
||
tagsError
,
[
runsError
,
tagsError
]);
const
loading
=
useMemo
(()
=>
runsLoading
||
tagsLoading
,
[
runsLoading
,
tagsLoading
]);
const
list
=
useMemo
(()
=>
{
if
(
!
runs
||
!
tags
)
{
return
[];
}
return
runs
.
reduce
<
Item
[]
>
(
(
p
,
run
)
=>
[...
p
,
...(
tags
[
run
].
map
(
tag
=>
({
run
,
tag
,
label
:
`
${
run
}
/
${
tag
}
`
}))
??
[])],
[]
);
},
[
runs
,
tags
]);
const
labelList
=
useMemo
(()
=>
list
.
map
(
item
=>
item
.
label
),
[
list
]);
const
{
query
}
=
useRouter
();
const
queryRun
=
Array
.
isArray
(
query
.
run
)
?
query
.
run
[
0
]
:
query
.
run
;
const
{
data
:
runs
,
error
,
loading
}
=
useRunningRequest
<
string
[]
>
(
'
/runs
'
,
running
);
const
selectedRun
=
queryRun
&&
runs
?.
includes
(
queryRun
)
?
queryRun
:
runs
?.[
0
];
const
selectedLabel
=
useMemo
(()
=>
{
const
run
=
Array
.
isArray
(
query
.
run
)
?
query
.
run
[
0
]
:
query
.
run
;
return
(
run
&&
list
.
find
(
item
=>
item
.
run
===
run
)?.
label
)
??
list
[
0
]?.
label
;
},
[
query
.
run
,
list
]);
const
[
label
,
setLabel
]
=
useState
(
selectedLabel
);
useEffect
(()
=>
setLabel
(
selectedLabel
),
[
selectedLabel
]);
const
[
run
,
setRun
]
=
useState
(
selectedRun
);
useEffect
(()
=>
setRun
(
selectedRun
),
[
setRun
,
selectedRun
]);
const
selectedItem
=
useMemo
(()
=>
list
.
find
(
item
=>
item
.
label
===
label
)
??
{
run
:
''
,
tag
:
''
,
label
:
''
},
[
list
,
label
]);
const
[
search
,
setSearch
]
=
useState
(
''
);
const
debounceSearch
=
useSearchValue
(
search
);
...
...
@@ -66,11 +99,7 @@ const HighDimensional: NextI18NextPage = () => {
const
aside
=
(
<
AsideSection
>
<
AsideTitle
>
{
t
(
'
common:select-runs
'
)
}
</
AsideTitle
>
<
StyledSelect
list
=
{
runs
}
value
=
{
run
}
onChange
=
{
(
value
:
NonNullable
<
typeof
runs
>
[
number
])
=>
setRun
(
value
)
}
/>
<
StyledSelect
list
=
{
labelList
}
value
=
{
label
}
onChange
=
{
setLabel
}
/>
<
AsideDivider
/>
<
Field
>
<
SearchInput
placeholder
=
{
t
(
'
common:search
'
)
}
value
=
{
search
}
onChange
=
{
setSearch
}
/>
...
...
@@ -123,7 +152,8 @@ const HighDimensional: NextI18NextPage = () => {
<
HighDimensionalChart
dimension
=
{
dimension
}
keyword
=
{
debounceSearch
}
run
=
{
run
??
''
}
run
=
{
selectedItem
.
run
}
tag
=
{
selectedItem
.
tag
}
running
=
{
running
}
labelVisibility
=
{
labelVisibility
}
reduction
=
{
reduction
}
...
...
frontend/packages/i18n/package.json
浏览文件 @
b3f4bdb7
{
"name"
:
"@visualdl/i18n"
,
"version"
:
"2.0.0-beta.4
2
"
,
"version"
:
"2.0.0-beta.4
3
"
,
"description"
:
"A platform to visualize the deep learning process and result."
,
"keywords"
:
[
"visualdl"
,
...
...
frontend/packages/mock/data/embeddings/tags.ts
0 → 100644
浏览文件 @
b3f4bdb7
export
default
{
test
:
[
'
layer2/biases/summaries/mean
'
,
'
test/1234
'
,
'
another
'
],
train
:
[
'
layer2/biases/summaries/mean
'
,
'
layer2/biases/summaries/accuracy
'
,
'
layer2/biases/summaries/cost
'
,
'
test/431
'
,
'
others
'
]
};
frontend/packages/mock/package.json
浏览文件 @
b3f4bdb7
{
"name"
:
"@visualdl/mock"
,
"version"
:
"2.0.0-beta.4
2
"
,
"version"
:
"2.0.0-beta.4
3
"
,
"description"
:
"A platform to visualize the deep learning process and result."
,
"keywords"
:
[
"visualdl"
,
...
...
frontend/packages/server/package.json
浏览文件 @
b3f4bdb7
{
"name"
:
"@visualdl/server"
,
"version"
:
"2.0.0-beta.4
2
"
,
"version"
:
"2.0.0-beta.4
3
"
,
"description"
:
"A platform to visualize the deep learning process and result."
,
"keywords"
:
[
"visualdl"
,
...
...
@@ -36,8 +36,8 @@
"ecosystem.config.d.ts"
],
"dependencies"
:
{
"@visualdl/core"
:
"2.0.0-beta.4
2
"
,
"@visualdl/i18n"
:
"2.0.0-beta.4
2
"
,
"@visualdl/core"
:
"2.0.0-beta.4
3
"
,
"@visualdl/i18n"
:
"2.0.0-beta.4
3
"
,
"express"
:
"4.17.1"
,
"http-proxy-middleware"
:
"1.0.3"
,
"next"
:
"9.3.6"
,
...
...
@@ -49,7 +49,7 @@
"@types/shelljs"
:
"0.8.7"
,
"@types/webpack"
:
"4.41.12"
,
"@types/webpack-dev-middleware"
:
"3.7.0"
,
"@visualdl/mock"
:
"2.0.0-beta.4
2
"
,
"@visualdl/mock"
:
"2.0.0-beta.4
3
"
,
"cross-env"
:
"7.0.2"
,
"nodemon"
:
"2.0.3"
,
"shelljs"
:
"0.8.4"
,
...
...
frontend/packages/serverless/package.json
浏览文件 @
b3f4bdb7
{
"name"
:
"@visualdl/serverless"
,
"version"
:
"2.0.0-beta.4
2
"
,
"version"
:
"2.0.0-beta.4
3
"
,
"description"
:
"A platform to visualize the deep learning process and result."
,
"keywords"
:
[
"visualdl"
,
...
...
@@ -33,7 +33,7 @@
"devDependencies"
:
{
"@types/node"
:
"13.13.5"
,
"@types/rimraf"
:
"3.0.0"
,
"@visualdl/core"
:
"2.0.0-beta.4
2
"
,
"@visualdl/core"
:
"2.0.0-beta.4
3
"
,
"cross-env"
:
"7.0.2"
,
"rimraf"
:
"3.0.2"
,
"ts-node"
:
"8.10.1"
,
...
...
frontend/packages/wasm/package.json
浏览文件 @
b3f4bdb7
{
"name"
:
"@visualdl/wasm"
,
"version"
:
"2.0.0-beta.4
2
"
,
"version"
:
"2.0.0-beta.4
3
"
,
"title"
:
"VisualDL"
,
"description"
:
"A platform to visualize the deep learning process and result."
,
"keywords"
:
[
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录