torchsig.utils.randomΒΆ

Utility to handle random number generators.

Functions

make_distribution

Classes

ChoiceDistribution

A class for handling random choices from lists

Distribution

A class for representing random distributions; created by calling get_distribution(params) on a Seedable object distributions are callable, such that some_seedable.get_distribution(params)() should return a random number from the distribution

Log10UniformRangeDistribution

A class for handling log10-weighted random uniform ranges

Seedable

A class/interface representing objects capable of accessing random numbers and being seeded.

UniformDistribution

A class for handling uniform random variables

UniformRangeDistribution

A class for handling random uniform ranges