Skip to main content

sample

Return a random sample of entries from a map. When a number is provided, returns that many entries.


Examples

Return a single random kernel parameter:

kernel.parameters.sample