A tuple of Discrete Spaces.
A convenience class for sampling a tuple of Discrete spaces.
const discTuple = new DiscreteTuple([2,2,6]); console.log(discTuple.toString()); > DiscreteTuple: [2, 2, 6] const sample = discTuple.sample(); console.log(sample); > [0,1,3]
The shape of the tuple.
Sample a random value from this Space.
Space
Generated using TypeDoc
A tuple of Discrete Spaces.
A convenience class for sampling a tuple of Discrete spaces.
const discTuple = new DiscreteTuple([2,2,6]); console.log(discTuple.toString()); > DiscreteTuple: [2, 2, 6] const sample = discTuple.sample(); console.log(sample); > [0,1,3]