def get_accuracy(test_set, predictions):
    """Get accuracy of predictions on test set.

    :param test_set: The set of records to test the model with.
    :param predictions: Predictions for the test set.
    :return: The accuracy of the model.
    """
    num_correct = 0
    num_records = len(test_set)
    for x in range(num_records):
        if test_set[x][-1] == predictions[x]:
            num_correct += 1
    return (num_correct / float(num_records)) * 100.0