Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

best accuracy find #39

Closed
outofstyle opened this issue Mar 5, 2022 · 3 comments
Closed

best accuracy find #39

outofstyle opened this issue Mar 5, 2022 · 3 comments
Assignees

Comments

@outofstyle
Copy link

outofstyle commented Mar 5, 2022

Describe the bug
A clear and concise description of what the bug is.
We find the best accuracy is different from paper given In tss search space when. And in cifar10 dataset, I can not find valid data(valid accuracy). Is it leavet out?
To Reproduce
Please provide a small script to reproduce the behavior:

from nats_bench import create
api = create('D:\Download\coreg-master\\NATS-tss-v1_0-3ffb9-simple', 'tss', fast_mode=True, verbose=True)
valid_acclist = []
    test_acclist = []
    netlist = []
    for i in range(0, 15625):
        info = api.get_more_info(i, 'cifar10', hp='200')
        config = api.get_net_config(i, 'cifar10')  #ImageNet16-120
        valid_acclist.append(info['valid-accuracy']) #I can not find valid-accuracy from cifar10, but it exist in cifar100 and imagenet
        test_acclist.append(info['test-accuracy']) #I find best test acc in cifar10 is 94.56 but not 94.37 in cifar10. It also happened in cifar100 and Imagenet

        netlist.append(config)

    max(valid_acclist)
codes to reproduce the bug

Please let me know your OS, Python version, PyTorch version.
windows 10, python 3.7 torch 1.9.0

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

@D-X-Y
Copy link
Owner

D-X-Y commented Mar 5, 2022

You can refer to the answer for this issue #38 :)

@D-X-Y D-X-Y self-assigned this Mar 5, 2022
@D-X-Y
Copy link
Owner

D-X-Y commented Mar 5, 2022

In short, to get the valid-accuracy on cifar10, you need to replace the dataset arg from "cifar10" to "cifar10-valid".

For the best performance reported in the paper, we use the is_random=False, where in your codesnapshot, the default value of "is_random" is "True".

@outofstyle
Copy link
Author

Thank you for answering this question. I haven't seen the answer to issue 38 before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants