import tensorflow as tf


    Returns:
        tuple (final output, loss)
    '''
    y = output
    if add_bias:
        bias = tf.Variable([0.0])
        y = output + bias
    loss = tf.reduce_sum(tf.square(y - target))
    return y, loss


def logistic_objective(output, target, add_bias=True):
    ''' Creates final model output and loss for logistic objective

    Args:
