def train_clf(x_train, y_train, clf):
    """
    Train classifier.
    :param x_train: Training inputs.
    :param y_train: Training outputs.
    :param clf: Untrained classifier object.
    :return: Trained classifier object.
    """
    clf.fit(x_train, y_train)  # train classifier

    return clf