def build_objective(interface_layers):
    l2_penalty = nn.regularization.regularize_layer_params_weighted(interface_layers['regularizable'], nn.regularization.l2)
    return objectives.KaggleObjective(interface_layers['outputs'], penalty=l2_penalty)
def build_objective(interface_layers):
    l2_penalty = nn.regularization.regularize_layer_params_weighted(interface_layers['regularizable'], nn.regularization.l2)
    return objectives.KaggleObjective(interface_layers['outputs'], penalty=l2_penalty)