

@staticmethod
def _hyperopt_fmin_random_kwarg(random):
    if ('rstate' in inspect.getargspec(fmin).args):
        kwargs = {
            'rstate': random,
            'allow_trials_fmin': False,
        }
    elif ('rseed' in inspect.getargspec(fmin).args):
        kwargs = {
            'rseed': random.randint(((2 ** 32) - 1)),
        }
    return kwargs

dataset/ETHPy150Open msmbuilder/osprey/osprey/strategies.py HyperoptTPE._hyperopt_fmin_random_kwarg/original