Beispiel #1
0
def main():
    data = load_data()
    target1, input1, target2, input2 = \
        data['target1'], normalize(data['input1']), data['target2'], normalize(data['input2'])

    ## Plot some random images
    #plot_random_images(input2)
    ## End plot some random images

    ## 2.1
    #ex_2_1(input2, target2)
    ## End 2.1

    ## 2.2
    ex_2_2(input1, target1, input2, target2)
Beispiel #2
0
def main():
    data = load_data()
    target1, input1, target2, input2 = \
        data['target1'], normalize(data['input1']), data['target2'], normalize(data['input2'])

    ## Plot some random images
    plot_random_images(input2)
    ## End plot some random images

    ## 2.1
    ## ex_2_1(input2, target2)
    ## End 2.1

    ## 2.2
    train_acc, test_acc, y_pred, C = ex_2_2(input1, target1, input2, target2)
    plot_histogram_of_acc(train_acc, test_acc) 
    print(C)