mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 08:34:53 +08:00
MAINT: Use randint instead of random_integers.
This commit is contained in:
@@ -172,7 +172,7 @@ class SeededRandomLoader(PrecomputedLoader):
|
||||
"""
|
||||
Return uniformly-distributed integers between 0 and 100.
|
||||
"""
|
||||
return (self.state.random_integers(low=0, high=100, size=shape)
|
||||
return (self.state.randint(low=0, high=100, size=shape)
|
||||
.astype('int64')) # default is system int
|
||||
|
||||
def _datetime_values(self, shape):
|
||||
@@ -180,7 +180,7 @@ class SeededRandomLoader(PrecomputedLoader):
|
||||
Return uniformly-distributed dates in 2014.
|
||||
"""
|
||||
start = Timestamp('2014', tz='UTC').asm8
|
||||
offsets = self.state.random_integers(
|
||||
offsets = self.state.randint(
|
||||
low=0,
|
||||
high=364,
|
||||
size=shape,
|
||||
|
||||
Reference in New Issue
Block a user