affinity_search/ga_addrequests.py
def randParam(param, choices):
    '''randomly select a choice for param'''
    if isinstance(choices, makemodel.Range): #discretize
        choices = np.linspace(choices.min,choices.max, 9)
    return np.asscalar(np.random.choice(choices))
randomly select a choice for param
randomly select a choice for param
randomly select a choice for param
def randParam(param, choices):
    if isinstance(choices, makemodel.Range): 
        choices = np.linspace(choices.min,choices.max, 9)
    return np.asscalar(np.random.choice(choices))
def randParam ( param , choices ) : if isinstance ( choices , makemodel . Range ) : choices = np . linspace ( choices . min , choices . max , 9 ) return np . asscalar ( np . random . choice ( choices ) )
randomly select a choice for param
randomly select a choice for param
'''randomly select a choice for param''' #discretize
param
choices