Example #1
0
def get_voting_classifier_score() -> (float, float):
    voting_classifier = get_classifier()
    score_train, score_test = solution.get_classifier_score(voting_classifier)

    return score_train, score_test
Example #2
0
def get_random_forest_classifier_score(settings) -> (float, float):
    random_forest_classifier = get_classifier()
    score_train, score_test = solution.get_classifier_score(
        random_forest_classifier, settings)

    return score_train, score_test
Example #3
0
def get_bayes_classifier_score(settings) -> (float, float):
    bayes_classifier = get_classifier()
    score_train, score_test = solution.get_classifier_score(bayes_classifier, settings)

    return score_train, score_test
Example #4
0
def get_tree_classifier_score(settings) -> (float, float):
    tree_classifier = get_classifier(settings["max_depth"])
    score_train, score_test = solution.get_classifier_score(
        tree_classifier, settings)

    return score_train, score_test
Example #5
0
def get_linear_classifier_score(settings) -> (float, float):
    linear_classifier = get_classifier()
    score_train, score_test = solution.get_classifier_score(
        linear_classifier, settings)

    return score_train, score_test
Example #6
0
def get_svm_classifier_score(settings) -> (float, float):
    svm_classifier = get_classifier()
    score_train, score_test = solution.get_classifier_score(
        svm_classifier, settings | base_settings)

    return score_train, score_test