Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ seed
Method
seed
ot/backend.py:1306–1308 ·
view source on GitHub ↗
(self, seed=None)
Source
from the content-addressed store, hash-verified
1304
return
np.reshape(a, shape)
1305
1306
def
seed(self, seed=None):
1307
if
seed is not None:
1308
self.rng_.seed(seed)
1309
1310
def
rand(self, *size, type_as=None):
1311
return
self.rng_.rand(*size)
Callers
2
get_random_projections
Function · 0.95
get_projections_sphere
Function · 0.95
Calls
1
seed
Method · 0.45
Tested by
no test coverage detected