import importlib


def make_clf(path, args):
    """Creates a classifier given config."""
    module, model = path.rsplit('.', maxsplit=1)
    clf_class = getattr(importlib.import_module(module), model)

    clf = clf_class(**args)
    return clf