Skip to content

← random package

RandomSeedIterator

Iterate over an infinite series of random seeds that are derived from an initial seed.

You can use this in combination with e.g., a ZipIterator to iterate over both some data (or a finite counter) along with a sequence of random seeds. Version 0.8.0

Ports/Properties

curseed

Current seed.

verbose name
Curseed
default value
None
port type
DataPort
value type
AnyArray (can be None)
data direction
OUT

initial_seed

Seed for generated random number sequence. This can be either a splittable seed as generated by Create Random Seed or a plain integer seed.

verbose name
Initial Seed
default value
None
port type
Port
value type
AnyNumeric (can be None)

backend

Optional compute backend for which to generate the seed. Keep is the current default, which is typically numpy, but which can be overridden in contexts that require it. Some backends (notably jax and tensorflow) require that the seed be generated using the same backend as the downstream random operation. For this reason, it is a good idea to use the same backend for both the seed management and the random operation to future-proof one's pipeline.

verbose name
Backend
default value
keep
port type
EnumPort
value type
str (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)