base.py
def random_argmax(vector):
    """Helper function to select argmax at random... not just first one."""
    try:
        index = np.random.choice(np.where(vector == np.max(vector))[0])
    except:
        index = np.random.choice(np.where(vector == np.nanmax(vector))[0])
    return index
Helper function to select argmax at random... not just first one.
Helper function to select argmax at random... not just first one.
Helper function to select argmax at random ... not just first one .
def random_argmax(vector):
    try:
        index = np.random.choice(np.where(vector == np.max(vector))[0])
    except:
        index = np.random.choice(np.where(vector == np.nanmax(vector))[0])
    return index
def random_argmax ( vector ) : try : index = np . random . choice ( np . where ( vector == np . max ( vector ) ) [ 0 ] ) except : index = np . random . choice ( np . where ( vector == np . nanmax ( vector ) ) [ 0 ] ) return index
Helper function to select argmax at random... not just first one.
Helper function to select argmax at random ... not just first one .
"""Helper function to select argmax at random... not just first one."""
vector