def adjusted_classes(y_scores, threshold):
    """
    This function adjusts class predictions based on the prediction threshold (t).
    Will only work for binary classification problems.

    Inputs:
        y_scores (1D array): Values between 0 and 1.
        threshold (float): probability threshold

    Returns:
        array of 0s and 1s
    """
    return (y_scores >= threshold).astype(int)