Skip to content
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

Add piont setoperator bc #986

Merged
merged 33 commits into from
Nov 9, 2022
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0f73397
Print out the external trainable variables at the end
Jul 25, 2022
5a57c84
Dump out the external trainable variables after each epoch
Jul 25, 2022
e57beda
Test dumping out external trainable variables for external optimizer
Jul 25, 2022
c286f15
Followings are done:
Oct 27, 2022
8e75b14
Solve merge conflicts
Oct 27, 2022
e221831
Followings are done:
Oct 27, 2022
2c8a91c
Merge branch 'addPiontSetoperatorBC' of https://github.com/tsarikahin…
Oct 27, 2022
34e7236
Revert deleting empty line
Oct 27, 2022
6d54324
Remove the doubled function
Oct 27, 2022
69ea1b7
Fix conflicts while printing
Oct 27, 2022
3c0060d
Add epochs_since_last to avoid repetition
Oct 28, 2022
15c67e2
Revert model.py back
Oct 28, 2022
bf487d7
Remove epochs_since_last
Oct 28, 2022
8be2498
Modify docstrings
Oct 31, 2022
6556196
Revert on_predict_end, call it from on_train_begin
Nov 2, 2022
348e917
Add PointSetOperator for modukes
Nov 2, 2022
bd8c3ec
Test PointSetOperator
Nov 2, 2022
a7f1684
Shorten text so that 88 chars per line
Nov 2, 2022
1f6e3dc
Fix typo
Nov 2, 2022
e32865f
Reorder BC module addition
Nov 3, 2022
0a424c7
Remove PointSetOperatorBC
Nov 3, 2022
7f376a2
Enforce Neumann BC using PointSetOperatorBC
Nov 3, 2022
d1c10da
Revert poisson neumann example
Nov 4, 2022
f4e2694
Add poisson example with PointSetOperator
Nov 4, 2022
4db1491
Add train_end function for external optimizer
Nov 4, 2022
18274eb
Remove boundary_r
Nov 4, 2022
099ac94
Add Poisson PointSetOperatorBC documentation
Nov 4, 2022
0ae4cc4
Add empty line at the end
Nov 4, 2022
fc3a8e1
Fix link and typo
Nov 4, 2022
cc2261d
Suported for tf.compat.v1
Nov 4, 2022
0bf0c31
Avoid duplication at the epoch end
Nov 8, 2022
81352ae
Fix typos
Nov 8, 2022
671181c
Fix extra definitions
Nov 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Shorten text so that 88 chars per line
  • Loading branch information
Tarik Sahin committed Nov 2, 2022
commit a7f1684b57fca21b2fd9333e2e07d8beb39d1f8c
12 changes: 7 additions & 5 deletions deepxde/icbc/boundary_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,17 @@ def error(self, X, inputs, outputs, beg, end, aux_var=None):
class PointSetOperatorBC:
lululxvi marked this conversation as resolved.
Show resolved Hide resolved
"""General operator boundary conditions for a set of points.

Compare the function output, func, (that associates with `points`) with `values` (target data).
Compare the function output, func, (that associates with `points`)
with `values` (target data).

Args:
points: An array of points where the corresponding target values are known and used for training.
points: An array of points where the corresponding target values are
known and used for training.
values: An array of values which output of function should fulfill
lululxvi marked this conversation as resolved.
Show resolved Hide resolved
func: A function takes arguments (`inputs`, `outputs`, `X`)
and outputs a tensor of size `N x 1`, where `N` is the length of `inputs`.
`inputs` and `outputs` are the network input and output tensors,
respectively; `X` are the NumPy array of the `inputs`.
and outputs a tensor of size `N x 1`, where `N` is the length of
`inputs`. `inputs` and `outputs` are the network input and output
tensors, respectively; `X` are the NumPy array of the `inputs`.
"""

def __init__(self, points, values, func):
Expand Down