Skip to content

Commit 43b6551

Browse files
committed
Rename L-BFGS-B to L-BFGS in examples
1 parent eae6825 commit 43b6551

File tree

8 files changed

+72
-72
lines changed

8 files changed

+72
-72
lines changed

examples/Beltrami_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def p_func(x):
167167

168168
model.compile("adam", lr=1e-3, loss_weights=[1, 1, 1, 1, 100, 100, 100, 100, 100, 100])
169169
model.train(epochs=30000)
170-
model.compile("L-BFGS-B", loss_weights=[1, 1, 1, 1, 100, 100, 100, 100, 100, 100])
170+
model.compile("L-BFGS", loss_weights=[1, 1, 1, 1, 100, 100, 100, 100, 100, 100])
171171
losshistory, train_state = model.train()
172172

173173
x, y, z = np.meshgrid(

examples/Burgers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def pde(x, y):
3939

4040
model.compile("adam", lr=1e-3)
4141
model.train(epochs=15000)
42-
model.compile("L-BFGS-B")
42+
model.compile("L-BFGS")
4343
losshistory, train_state = model.train()
4444
dde.saveplot(losshistory, train_state, issave=True, isplot=True)
4545

examples/Burgers_RAR.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def pde(x, y):
3636

3737
model.compile("adam", lr=1.0e-3)
3838
model.train(epochs=10000)
39-
model.compile("L-BFGS-B")
39+
model.compile("L-BFGS")
4040
model.train()
4141

4242
X = geomtime.random_points(100000)
@@ -53,7 +53,7 @@ def pde(x, y):
5353
early_stopping = dde.callbacks.EarlyStopping(min_delta=1e-4, patience=2000)
5454
model.compile("adam", lr=1e-3)
5555
model.train(epochs=10000, disregard_previous_best=True, callbacks=[early_stopping])
56-
model.compile("L-BFGS-B")
56+
model.compile("L-BFGS")
5757
losshistory, train_state = model.train()
5858
dde.saveplot(losshistory, train_state, issave=True, isplot=True)
5959

examples/Kovasznay_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def boundary_outflow(x, on_boundary):
7777

7878
model.compile("adam", lr=1e-3)
7979
model.train(epochs=30000)
80-
model.compile("L-BFGS-B")
80+
model.compile("L-BFGS")
8181
losshistory, train_state = model.train()
8282

8383
X = spatial_domain.random_points(100000)

examples/Lotka_Volterra_Colab.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"model.compile(\"adam\", lr=0.001)\r\n",
118118
"losshistory, train_state = model.train(epochs=50000)\r\n",
119119
"\r\n",
120-
"model.compile(\"L-BFGS-B\")\r\n",
120+
"model.compile(\"L-BFGS\")\r\n",
121121
"losshistory, train_state = model.train()\r\n",
122122
"\r\n",
123123
"dde.saveplot(losshistory, train_state, issave=True, isplot=True)\r\n"

examples/Poisson_Lshape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ def boundary(_, on_boundary):
2121

2222
model.compile("adam", lr=0.001)
2323
model.train(epochs=50000)
24-
model.compile("L-BFGS-B")
24+
model.compile("L-BFGS")
2525
losshistory, train_state = model.train()
2626
dde.saveplot(losshistory, train_state, issave=True, isplot=True)

examples/Volterra_IDE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def main():
4141
net = dde.maps.FNN(layer_size, activation, initializer)
4242

4343
model = dde.Model(data, net)
44-
model.compile("L-BFGS-B")
44+
model.compile("L-BFGS")
4545
model.train()
4646

4747
X = geom.uniform_points(100)

examples/heat_conduction_1d_uniform_bar.ipynb

Lines changed: 64 additions & 64 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)