Skip to content

Commit dae9d0c

Browse files
committed
set default of shuffle to True
1 parent cba095a commit dae9d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepxde/icbc/boundary_conditions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class PointSetOperatorBC:
255255
shuffle: Randomize the order on each pass through the data when batching.
256256
"""
257257

258-
def __init__(self, points, values, func, batch_size=None, shuffle=None):
258+
def __init__(self, points, values, func, batch_size=None, shuffle=True):
259259
self.points = np.array(points, dtype=config.real(np))
260260
if not isinstance(values, numbers.Number) and values.shape[1] != 1:
261261
raise RuntimeError("PointSetOperatorBC should output 1D values")

0 commit comments

Comments
 (0)