-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【PPSCI Doc No.21、22】ppsci.arch.LorenzEmbedding、ppsci.arch.LRosslerEmbedding #780
Conversation
Thanks for your contribution! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢大佬年前还提交PR,辛苦修改一下
ppsci/arch/embedding_koopman.py
Outdated
Returns: | ||
None. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一般class的__init__
方法可以不用写Return字段
ppsci/arch/embedding_koopman.py
Outdated
Examples: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此处不需要添加空行
ppsci/arch/embedding_koopman.py
Outdated
... input_keys = ("x", "y"), | ||
... output_keys=("u", "v"), | ||
... input_size = 3, | ||
... hidden_size = 500, | ||
... embed_size = 32, | ||
... drop = 0.0, | ||
... mean = None, | ||
... std = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
等号用于指定参数时两侧不用加空格
ppsci/arch/embedding_koopman.py
Outdated
>>> import ppsci | ||
>>> model = ppsci.arch.LorenzEmbedding(("x", "y"), ("u", "v")) | ||
>>> from ppsci.arch.embedding_koopman import LorenzEmbedding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>>> from ppsci.arch.embedding_koopman import LorenzEmbedding
可以删除吧
ppsci/arch/embedding_koopman.py
Outdated
Returns: | ||
None. | ||
|
||
Examples: | ||
|
||
>>> import ppsci | ||
>>> model = ppsci.arch.RosslerEmbedding(("x", "y"), ("u", "v")) | ||
>>> from ppsci.arch.embedding_koopman import RosslerEmbedding | ||
>>> model = ppsci.arch.RosslerEmbedding( | ||
... input_keys = ("x", "y"), | ||
... output_keys=("u", "v"), | ||
... input_size = 3, | ||
... hidden_size = 500, | ||
... embed_size = 32, | ||
... drop = 0.0, | ||
... mean = None, | ||
... std = None, | ||
... ) | ||
>>> x_shape = [8, 3, 2] | ||
>>> y_shape = [8, 3, 1] | ||
>>> input_dict = { | ||
... "x": paddle.rand(x_shape), | ||
... "y": paddle.rand(y_shape) | ||
... } | ||
>>> output_dict = model(input_dict) | ||
>>> print(output_dict["u"].shape) | ||
[8, 2, 3] | ||
>>> print(output_dict["v"].shape) | ||
[8, 3, 3] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
问题同上
ppsci/arch/embedding_koopman.py
Outdated
[8, 2, 3] | ||
>>> print(output_dict["v"].shape) | ||
[8, 3, 3] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此处空行删除
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改完噜QVQ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Others
PR changes
Docs
Describe
完善 ppsci.arch.LorenzEmbedding 、ppsci.arch.LRosslerEmbedding的示例 ~
任务链接:#686
对此模型的具体应用还不熟悉QVQ,阔以看看能这样写嘛
@HydrogenSulfate