Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nn.test result problem #185

@shengxingdong

Description

@shengxingdong

In sample1_convnet, when i try to use
std::vector<vec_t> result = nn.test(test_images);
It seems that the result is not correct, it is not the same as nn.test(test_images, test_labels).

The value of "max_index(result[i])" is not same as "nn.fprop_max_index(test_images[i])" .

I compared the result using this code:
for (int i = 0; i < 10; i++){
cout << test_labels[i] << " vs " << max_index(result[i]) << " vs " << nn.fprop_max_index(test_images[i]) << endl;
for (int k = 0; k < result[i].size(); k++){
cout << result[i][k] << ",";
}
cout << endl;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions