dora/regressors/gp/train.py
def batch_start(opt_config, initial_values):
    """
    Sets initial values of the optimiser parameters
    Returned as an OptConfig instance or a list of OptConfig instances

    Arguments:
        opt_config      : An instance of OptConfig
        initial_values  : List or np.array of initial parameters values
    Returns:
        batch_config    : A OptConfig instance or a list of OptConfig instances
    """
    if hasattr(initial_values[0], '__iter__'):
        batch_config = []
        for value in initial_values:
            opt_config_copy = copy.deepcopy(opt_config)
            opt_config_copy.sigma.initialVal = value
            batch_config.append(opt_config_copy)
    else:
        batch_config = copy.deepcopy(opt_config)
        batch_config.sigma.initialVal = initial_values
    return batch_config

    Sets initial values of the optimiser parameters
    Returned as an OptConfig instance or a list of OptConfig instances

    Arguments:
        opt_config      : An instance of OptConfig
        initial_values  : List or np.array of initial parameters values
    Returns:
        batch_config    : A OptConfig instance or a list of OptConfig instances
    
Sets initial values of the optimiser parameters
Returned as an OptConfig instance or a list of OptConfig instances
Sets initial values of the optimiser parameters Returned as an OptConfig instance or a list of OptConfig instances
def batch_start(opt_config, initial_values):
    if hasattr(initial_values[0], '__iter__'):
        batch_config = []
        for value in initial_values:
            opt_config_copy = copy.deepcopy(opt_config)
            opt_config_copy.sigma.initialVal = value
            batch_config.append(opt_config_copy)
    else:
        batch_config = copy.deepcopy(opt_config)
        batch_config.sigma.initialVal = initial_values
    return batch_config
def batch_start ( opt_config , initial_values ) : if hasattr ( initial_values [ 0 ] , '__iter__' ) : batch_config = [ ] for value in initial_values : opt_config_copy = copy . deepcopy ( opt_config ) opt_config_copy . sigma . initialVal = value batch_config . append ( opt_config_copy ) else : batch_config = copy . deepcopy ( opt_config ) batch_config . sigma . initialVal = initial_values return batch_config
Sets initial values of the optimiser parameters
Returned as an OptConfig instance or a list of OptConfig instances
Sets initial values of the optimiser parameters Returned as an OptConfig instance or a list of OptConfig instances
"""
    Sets initial values of the optimiser parameters
    Returned as an OptConfig instance or a list of OptConfig instances

    Arguments:
        opt_config      : An instance of OptConfig
        initial_values  : List or np.array of initial parameters values
    Returns:
        batch_config    : A OptConfig instance or a list of OptConfig instances
    """
batch_config    : A OptConfig instance or a list of OptConfig instances
batch_config : A OptConfig instance or a list of OptConfig instances
opt_config
initial_values
opt_config      
An instance of OptConfig
An instance of OptConfig
initial_values  
List or np.array of initial parameters values
List or np . array of initial parameters values