-
Notifications
You must be signed in to change notification settings - Fork 263
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
【Hackathon No.71】为 PaddleScience 新增支持随机/Quasi采样法 #58
Conversation
PR格式检查通过,你的PR将接受Paddle专家以及开源社区的review,请及时关注PR动态。 |
|
||
## 增强采样 | ||
|
||
对于一些任务的特殊性,可以在采样时增强采样,如下采样点生成方式 |
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.
您好,您说的效果可能需要73题目的支持(几何图形的布尔运算),但是最近我有点事情,回复会比较慢,但是我会继续完善该RFC,感谢您的REVIEW
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.
你好,我为73题目以及71题目写了一个简单的demo,可以在此处查看Geometry
但是现阶段非常粗糙,运行效果在repo目录下的ipynb文件可以查看,希望您能给给意见,或者可以联系我的邮箱me@puqing.work
|
||
## DeepXDE | ||
|
||
deepxde 在[sampler](https://github.com/lululxvi/deepxde/blob/master/deepxde/geometry/sampler.py)中实现了采样,支持 Pseudo random 采样与由 skopt.sampler 提供的 Quasi random 采样。 |
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.
我们这里提到的准随机采样,是否也完全支持sampler中拉丁超立方、halton等序列?
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.
您好,scipy中也支持上述序列采样,具体参考scipy.stats.qmc,如下图是各种采样的对比
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.
好的,可以。
|
||
即像 deepxde 中 boundary_sampler 中单独对边缘采样。 | ||
|
||
第一种随机性过高,可能需要重复调整边界取点条件。所以推荐第二种方式。 |
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.
可否对边界随机采样的点定义不同标识的set集合(eg: inlet_bc, outlet_bc, side_bc, circle_bc……),并在定义BC时,可直接选择不同标识的点集定义。 目的是能够保证几何尺寸变化后,随机点、边界条件等同步发生变化,放弃if判断的方法。
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.
这块可以考虑下是否有些好的想法哈
更新了关于增加Geometry、随机化采样、增强性采样我的想法,但是可能时间不足,无法完成,但是上述repo我会持续更新。感谢您的review |
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.
大体路线可行,希望能够再完善下
No description provided.