def METHOD_NAME(config, classifier, output_folder):
    start_time = time.time()
    logging.info(f'Begin training/inference using {classifier} classifier...')
    for topic in config['topics']:
        X_train, y_train = load_train(topic, train_feature_folder)
        _, doc_idx, _ = test_doc_score[topic]
        X_test = test_data[doc_idx]
        logging.info(f'Processing topic {topic}')
        y_test = evaluate_topic(X_train, y_train, X_test, classifier)
        test_doc_score[topic].append(y_test)
    for alpha in [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]:
        rerank(test_doc_score, alpha, output_folder, 10000, classifier)
    logging.info(f'Finished with {classifier} in {time.time() - start_time} seconds')