def build_clf(X, y, clf_class, **kwargs):
    """build any classifier that implements a fit method with
    given parameters"""

    clf = clf_class(**kwargs)
    clf_fit = clf.fit(X, y)
    return clf_fit