Module pysimt.samplers
Expand source code
from .bucket import BucketBatchSampler
from .approx import ApproximateBucketBatchSampler
def get_sampler(type_):
return {
'bucket': BucketBatchSampler,
'approximate': ApproximateBucketBatchSampler,
}[type_.lower()]
Sub-modules
pysimt.samplers.approx
pysimt.samplers.bucket
Functions
def get_sampler(type_)
-
Expand source code
def get_sampler(type_): return { 'bucket': BucketBatchSampler, 'approximate': ApproximateBucketBatchSampler, }[type_.lower()]