Computes the classification error.

    This function computes the classification error between two lists

    Parameters
    ----------
    actual : list
             A list of the true classes
    predicted : list
                A list of the predicted classes

    Returns
    -------
    score : double
            The classification error between actual and predicted

def ce(actual, predicted):
    """
    Computes the classification error.

    This function computes the classification error between two lists

    Parameters
    ----------
    actual : list
             A list of the true classes
    predicted : list
                A list of the predicted classes

    Returns
    -------
    score : double
            The classification error between actual and predicted

    """
    return (sum([1.0 for x,y in zip(actual,predicted) if x != y]) /
            len(actual))