Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
2c30dccc
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看板
未验证
提交
2c30dccc
编写于
2月 20, 2021
作者:
P
Peter Pan
提交者:
GitHub
2月 20, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: iteration state error when change dimensional in high-dimensional page (#936)
上级
74e2185f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
2 deletion
+10
-2
frontend/packages/core/src/components/HighDimensionalPage/TSNEDetail.tsx
...es/core/src/components/HighDimensionalPage/TSNEDetail.tsx
+8
-1
frontend/packages/core/src/pages/high-dimensional.tsx
frontend/packages/core/src/pages/high-dimensional.tsx
+2
-1
未找到文件。
frontend/packages/core/src/components/HighDimensionalPage/TSNEDetail.tsx
浏览文件 @
2c30dccc
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
React
,
{
FunctionComponent
,
useCallback
,
useState
}
from
'
react
'
;
import
React
,
{
FunctionComponent
,
useCallback
,
use
Effect
,
use
State
}
from
'
react
'
;
import
Button
from
'
~/components/Button
'
;
import
Button
from
'
~/components/Button
'
;
import
Field
from
'
~/components/Field
'
;
import
Field
from
'
~/components/Field
'
;
...
@@ -33,6 +33,7 @@ export type TSNEDetailProps = {
...
@@ -33,6 +33,7 @@ export type TSNEDetailProps = {
iteration
:
number
;
iteration
:
number
;
perplexity
:
number
;
perplexity
:
number
;
learningRate
:
number
;
learningRate
:
number
;
is3D
:
boolean
;
onChangePerplexity
?:
(
perplexity
:
number
)
=>
void
;
onChangePerplexity
?:
(
perplexity
:
number
)
=>
void
;
onChangeLearningRate
?:
(
learningRate
:
number
)
=>
void
;
onChangeLearningRate
?:
(
learningRate
:
number
)
=>
void
;
onPause
?:
()
=>
void
;
onPause
?:
()
=>
void
;
...
@@ -45,6 +46,7 @@ const TSNEDetail: FunctionComponent<TSNEDetailProps> = ({
...
@@ -45,6 +46,7 @@ const TSNEDetail: FunctionComponent<TSNEDetailProps> = ({
iteration
,
iteration
,
perplexity
,
perplexity
,
learningRate
,
learningRate
,
is3D
,
onChangePerplexity
,
onChangePerplexity
,
onChangeLearningRate
,
onChangeLearningRate
,
onPause
,
onPause
,
...
@@ -98,6 +100,11 @@ const TSNEDetail: FunctionComponent<TSNEDetailProps> = ({
...
@@ -98,6 +100,11 @@ const TSNEDetail: FunctionComponent<TSNEDetailProps> = ({
});
});
},
[
onRerun
,
onStop
]);
},
[
onRerun
,
onStop
]);
useEffect
(()
=>
{
setPaused
(
false
);
setStopped
(
false
);
},
[
is3D
]);
return
(
return
(
<>
<>
<
Field
label
=
{
t
(
'
high-dimensional:perplexity
'
)
}
>
<
Field
label
=
{
t
(
'
high-dimensional:perplexity
'
)
}
>
...
...
frontend/packages/core/src/pages/high-dimensional.tsx
浏览文件 @
2c30dccc
...
@@ -364,6 +364,7 @@ const HighDimensional: FunctionComponent = () => {
...
@@ -364,6 +364,7 @@ const HighDimensional: FunctionComponent = () => {
iteration
=
{
(
data
as
TSNEResult
)?.
step
??
0
}
iteration
=
{
(
data
as
TSNEResult
)?.
step
??
0
}
perplexity
=
{
perplexity
}
perplexity
=
{
perplexity
}
learningRate
=
{
learningRate
}
learningRate
=
{
learningRate
}
is3D
=
{
is3D
}
onChangePerplexity
=
{
setPerplexity
}
onChangePerplexity
=
{
setPerplexity
}
onChangeLearningRate
=
{
setLearningRate
}
onChangeLearningRate
=
{
setLearningRate
}
onPause
=
{
chart
.
current
?.
pauseTSNE
}
onPause
=
{
chart
.
current
?.
pauseTSNE
}
...
@@ -377,7 +378,7 @@ const HighDimensional: FunctionComponent = () => {
...
@@ -377,7 +378,7 @@ const HighDimensional: FunctionComponent = () => {
default
:
default
:
return
null
as
never
;
return
null
as
never
;
}
}
},
[
reduction
,
dimension
,
data
,
perplexity
,
learningRate
,
neighbors
,
runUMAP
]);
},
[
reduction
,
dimension
,
data
,
perplexity
,
learningRate
,
is3D
,
neighbors
,
runUMAP
]);
const
aside
=
useMemo
(
const
aside
=
useMemo
(
()
=>
(
()
=>
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录