Skip to content

Commit 48bd998

Browse files
committed
fix none seed
1 parent 0648848 commit 48bd998

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ot/lowrank.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ def kernel_nystroem(X_s, X_t, anchors=50, sigma=1.0, random_state=None):
554554
Right factor of Nystroem
555555
"""
556556
nx = get_backend(X_s, X_t)
557-
nx.seed(random_state)
557+
if random_state is not None:
558+
nx.seed(random_state)
558559

559560
n, m = X_s.shape[0], X_t.shape[0]
560561

0 commit comments

Comments
 (0)