Skip to content

Commit ad86097

Browse files
authored
Fix typos (#1150)
1 parent d8102a2 commit ad86097

39 files changed

+74
-74
lines changed

docs/zh/examples/drivaernetplusplus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export ep2=-----------------ID-----------------
345345

346346
17. 下载数据,将 PubDAS 中的 License.txt 从 ep1 数据源传送到 ep2(自己路径下,第 8,9 步设置)。
347347
``` sh
348-
# here is defaut path (your home path)
348+
# here is default path (your home path)
349349
globus transfer $ep1:License.txt $ep2:/~/License.txt
350350
Message: The transfer has been accepted and a task has been created and queued for execution
351351
Task ID: -----------------传送任务ID-----------------

docs/zh/examples/phygeonet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ T=3
214214
![image](https://paddle-org.bj.bcebos.com/paddlescience/docs/PhyGeoNet/heat_equation_bc_2.png)
215215

216216
T=6
217-
![iamge](https://paddle-org.bj.bcebos.com/paddlescience/docs/PhyGeoNet/heat_equation_bc_3.png)
217+
![image](https://paddle-org.bj.bcebos.com/paddlescience/docs/PhyGeoNet/heat_equation_bc_3.png)
218218

219219
## 6. 总结
220220

docs/zh/examples/tempoGAN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ examples/tempoGAN/conf/tempogan.yaml:27:37
146146
--8<--
147147
```
148148

149-
注意到其中包含 3 个 bool 类型的变量 `use_amp``use_spatialdisc``use_tempodisc`,它们分别表示是否使用混合精度训练(AMP)、是否使用 Discriminator 和是否使用 Discriminator_tempo,当 `use_spatialdisc``use_tempodisc` 都被设置为 `False` 时,本问题的网络结构将会变为一个单纯的 Genrator 模型,不再是 GAN 网络了。
149+
注意到其中包含 3 个 bool 类型的变量 `use_amp``use_spatialdisc``use_tempodisc`,它们分别表示是否使用混合精度训练(AMP)、是否使用 Discriminator 和是否使用 Discriminator_tempo,当 `use_spatialdisc``use_tempodisc` 都被设置为 `False` 时,本问题的网络结构将会变为一个单纯的 Generator 模型,不再是 GAN 网络了。
150150

151151
同时需要指定训练轮数和学习率等超参数,注意由于 GAN 网络训练流程与一般单个模型的网络不同,`EPOCHS` 的设置也有所不同。
152152

examples/adr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
souce code will be available after code already orgnized in the near future.
1+
source code will be available after code already orgnized in the near future.

examples/moflow/optimize_moflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def load_property_csv(filepath, normalize=True):
7272

7373

7474
def smiles_to_adj(mol_smiles, data_name="qm9"):
75-
"""Use simles to adj, atoms
75+
"""Use smiles to adj, atoms
7676
7777
Args:
7878
mol_smiles: eg. CC(C)(C)c1ccc2occ(CC(=O)Nc3ccccc3F)c2c1

jointContribution/CFDGCN/mesh_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def delauney(x):
268268
face = np.array([[0, 1, 2]])
269269
else:
270270
raise ValueError(
271-
f"Not enough points to contruct Delaunay triangulation, got {pos.shape[0]} "
271+
f"Not enough points to construct Delaunay triangulation, got {pos.shape[0]} "
272272
+ "but expected at least 3"
273273
)
274274

jointContribution/PIRBN/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Inspired by findings, we proposed the PIRBN, which can exhibit the local propert
1313

1414
Numerical examples include:
1515

16-
- 1D sine funtion (**Eq. 13** in the manuscript)
16+
- 1D sine function (**Eq. 13** in the manuscript)
1717

1818
**PDE**: $\frac{\partial^2 }{\partial x^2}u(x)-4\mu^2\pi^2 sin(2\mu\pi(x))=0, x\in[0,1]$
1919

2020
**BC**: $u(0)=u(1)=0.$
2121

22-
- 1D sine funtion (**Eq. 15** in the manuscript)
22+
- 1D sine function (**Eq. 15** in the manuscript)
2323
**PDE**: $\frac{\partial^2 }{\partial x^2}u(x-100)-4\mu^2\pi^2 sin(2\mu\pi(x-100))=0, x\in[100,101]$
2424

2525
**BC**: $u(100)=u(101)=0.$
@@ -32,7 +32,7 @@ For more details in terms of mathematical proofs and numerical examples, please
3232

3333
<https://github.com/JinshuaiBai/PIRBN>
3434

35-
## Enviornmental settings
35+
## Environmental settings
3636

3737
``` shell
3838
pip install -r requirements.txt

jointContribution/PIRBN/jacobian_function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def jacobian(y, x):
2424
J = paddle.zeros(J_shape)
2525
J_flat = flat(
2626
J, start_axis=0, stop_axis=len(y.shape) - 1
27-
) # partialy flatten as y_flat
27+
) # partially flatten as y_flat
2828
for i, y_i in enumerate(y):
29-
assert y_i.size == 1, f"y_i.size shoule be 1, but got {y_i.size}"
29+
assert y_i.size == 1, f"y_i.size should be 1, but got {y_i.size}"
3030
grad = paddle.grad(y_i, x, allow_unused=True)[
3131
0
3232
] # grad[i] == sum by j (dy[j] / dx[i])

jointContribution/PIRBN/rbn_net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Activation(paddle.nn.Layer):
133133
def __init__(self, n_neu, c, n_in, activation_function="gaussian"):
134134
super(Activation, self).__init__()
135135
self.activation_function = activation_function
136-
# PINN y = w2 * (tanh(w1 * x + b1)) + b2 w,b are trainable parameters, b is bais
136+
# PINN y = w2 * (tanh(w1 * x + b1)) + b2 w,b are trainable parameters, b is bias
137137
# PIRBN y = w * exp(b^2 * |x-c|^2) w,b are trainable parameters, c is constant, b is not bias
138138

139139
if self.activation_function == "gaussian":

jointContribution/graphcast/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_day_progress(
5050
point at which UNIX time starts).
5151
longitude: 1D array of longitudes at which day progress is computed.
5252
Returns:
53-
2D array of day progress values normalized to be in the [0, 1) inverval
53+
2D array of day progress values normalized to be in the [0, 1) interval
5454
for each time point at each longitude.
5555
"""
5656
# [0.0, 1.0) Interval.

0 commit comments

Comments
 (0)