Skip to content

Deep learning on MNIST, visualize results, metrics error #188

Closed
@KirahviF

Description

@KirahviF

The line

y_test_accuracy = [
    store_training_accurate_pred[i] / float(len(training_images))
    for i in range(len(store_training_accurate_pred))
]

seems to be wrong, it should be:

y_test_accuracy = [
    store_test_accurate_pred[i] / float(len(test_images))
    for i in range(len(store_test_accurate_pred))
]

It's easy to miss because of the same length of training_images and test_images. That's why I suggest change numbers training_sample & test_sample from 1000 & 1000 to 2000 @ 1000 for example.
Also I don't understand why convert integer to float here, but maybe it's because of my poor knowledge...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions