コード例 #1
0
def run(method_builder, file):
    input_data = zip(*read_input(file))
    c = regularization.find_regularization_const(input_data, method_builder)

    result = regularization.build_classifier_get_result(input_data, c, method_builder)
    print("The best result is when C is: " + str(c))
    print_result(*result)
コード例 #2
0
def single_run(builder, file, c):
    input_data = zip(*read_input(file))

    result = regularization.build_classifier_get_result(input_data, c, builder)
    print_result(*result)